我试图有一个链接显示在白色,没有下划线。文本颜色正确显示为白色,但蓝色下划线固执地持续存在。我试图text-decoration: none;和text-decoration: none !important;在CSS删除链接的下划线。都没有工作。
HTML:
<div class="boxhead"> <h2> <span class="thisPage">Current Page</span> <a href="myLink"><span class="otherPage">Different Page</span></a> </h2></div>CSS:.boxhead .otherPage { color: #FFFFFF; text-decoration: none;}我怎样才能从链接中删除蓝色下划线?
相似问题