我试图有一个链接显示在白色,没有下划线.文本 colored颜色 正确地显示为白色,但蓝色下划线顽固地存在.我在CSS中try 了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>
如何从链接中删除蓝色下划线?