代码之家  ›  专栏  ›  技术社区  ›  Stav Alfi

链接仅在具有特定类时才显示

  •  0
  • Stav Alfi  · 技术社区  · 6 年前

    以下是完整代码:

    https://www.w3schools.com/code/tryit.asp?filename=FVPUZUO2Z6YQ

    隐藏 只有 sponsor-link button-link

    <html>
    <head>
    <style>
    .button-link {
    }
    .sponsor-link {
    }
    </style>
    </head>
    <body>
    <a href="aaaa" class="sponsor-link">
            11111
      </a>
    </body>
    </html>
    

    这有什么意义?类名的实际问题是什么 赞助商链接

    1 回复  |  直到 6 年前
        1
  •  3
  •   Brad Evans    6 年前

    这是由于启用了Ad块。把它停在你正在工作的页面上,然后你就会看到 sponsor-link