html - 如何在不需要的地方移动 anchor 元素

标签 html css

我的网站提供了超过 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/

相关文章:

html - 一个元素的垂直对齐方式根据相邻元素的内容而变化

html - 如何使用angularjs动态显示表中的对象数组?

javascript - HTML 5 - 使用 <img> 元素与 Canvas drawImage

css - 垂直对齐标记为单选按钮的正确方法是什么

css - 使用 TailwindCSS 清除 CSS 白名单模式

html - 使用 CSS 更改复选框大小

jquery - Css 未导入到 html 中

layout - 使用内联 block 而不是 float 的 Css 布局

html - 使用 uk-close 按钮​​隐藏/关闭容器

javascript - 输入时的 onfocus 和 onblur 事件