为什么我的访问链接没有背景颜色? [英] Why won't my visited link have a background color?
问题描述
a:visited在我的链接上显示背景颜色似乎不起作用.
It seems that a:visited won't work in showing background color on my links.
http://jsfiddle.net/davestein/D2srA/
我错过了什么超级简单的事情?
What super simple thing am I missing?
推荐答案
如果正常的a
具有背景颜色,可以通过显式定义或通过继承来实现(直接父级实际上必须具有背景颜色才能使其为真).
The background-color on a:visited
only seems to work (as Dave said above, in FF, Chrome and Safari) if the normal a
has a background-color, either explicitly defined or through inherit (the direct parent must actually have a background-color for this to be true).
显然,不总是为a
定义背景颜色是不理想的,因为该站点可能具有背景图像.
Obviously it is not ideal to have to define a background-color for a
all the time, as the site may have a background image.
CSS bug ..?
CSS bug..?
这篇关于为什么我的访问链接没有背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!