我的网站提供了超过 100 像素和 10 像素的 anchor 元素,而且数量太多了。谁能解决这个问题?我只想要两个。
我检查了我的代码,没有比想要的 anchor 标记更多的东西了。我不知道我该怎么办。
<footer class="w3-container">
<p>Made with <a href="https://www.w3schools.com/w3css/default.asp">W3.CSS</a> || <a style="border-radius: 8px; height: 36px;" id="logout" class="w3-button w3-text-white w3-red" href="logout.php">Logout</button></p>
</footer>
我希望有两个 anchor ,但至少有三个。我不知道这是我的电脑问题还是程序缺陷。
最佳答案
您使用什么创建页面?此外,您的链接元素应该以相同的标签结束。像这样:
<a style="border-radius: 8px; height: 36px;" id="logout" class="w3-button w3-text-white w3-red" href="logout.php">Logout</a>
关于html - 如何在不需要的地方移动 anchor 元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55388720/