蓝色和紫色默认链接,如何删除? [英] Blue and Purple Default links, how to remove?
本文介绍了蓝色和紫色默认链接,如何删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的导航中的一个链接:
This is one of the links in my nav:
<li><a href="#live-now" class="navBtn"><span id="navLiveNow" class="white innerShadow textShadow">Live Now</span></a></li>
我的css中还有以下内容:
I also have the following in my css:
a { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:focus { text-decoration: none; }
a:hover, a:active { text-decoration: none; }
但链接仍然显示在可怕的蓝色/紫色访问/悬停html默认值中。
But the links still display in the awful blue/purple visited /hover html default. What am i doing wrong?
推荐答案
您需要覆盖颜色:
a { color:red } /* Globally */
/* Each state */
a:visited { text-decoration: none; color:red; }
a:hover { text-decoration: none; color:blue; }
a:focus { text-decoration: none; color:yellow; }
a:hover, a:active { text-decoration: none; color:black }
这篇关于蓝色和紫色默认链接,如何删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文