我试图让一个链接以白色显示,没有下划线。文本颜色正确显示为白色,但蓝色下划线顽固地持续存在。我尝试在 CSS 中删除链接下划线text-decoration: none;
。text-decoration: none !important;
都没有奏效。
.boxhead .otherPage {
color: #FFFFFF;
text-decoration: none;
}
<div class="boxhead">
<h2>
<span class="thisPage">Current Page</span>
<a href="myLink"><span class="otherPage">Different Page</span></a>
</h2>
</div>
如何从链接中删除蓝色下划线?