我试图使链接以白色呈现,没有下划线。文字颜色正确地显示为白色,但蓝色的下划线仍然存在。我尝试在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>
如何去掉链接的蓝色下划线?