【发布时间】:2022-01-08 19:03:33
【问题描述】:
我想知道如何在将鼠标悬停在链接上时更改颜色
感谢您的建议?
HTML:
<nav>
<a class="underline" href="welcome.html">./home </a>
<a class="underline" href="about.html">./about </a>
<a class="underline" href="projects.html">./projects </a>
<a class="underline" href="ctf.html">./ctf's</a>
</nav>
我确实通过以下方式解决了它:
a[href] {
color: #ffff; /* Change this to which color you prefer */
}
在css中
【问题讨论】:
标签: html bootstrap-4