a:visited在Mozilla Firefox中不起作用 [英] a:visited doesn't work in Mozilla Firefox
问题描述
我创建了一个链接,当我尝试设置样式时;
a:visited {
text装饰:下划线;
color:#FF0000;
}
似乎没有效果。它工作正常在IE。我也遵循了命令;链接,访问,悬停,活动。
这是已知问题,还是我犯了什么错误?
它可能与特定性和你的选择器的顺序有关。一般来说,当指定链接状态时,你应该遵循 l o v e / ha teprincipal:
-
:
link
-
isited
-
:
h过
-
: a
ctive
/ ol>
也许你有
:hover
或:active
selector:visited
?I have created a link and when I try to set the style;
a:visited { text-decoration: underline; color: #FF0000; }
It doesnt seem to work. It works fine in IE. I have also followed the order; link, visited, hover, active.
Is this a known issue, or am I making any mistake?解决方案It might have to do with specificity and the order that you have your selectors in. In general, when specifying link states, you should follow the "love/hate" principal:
:
link
:
visited
:
hover
:
active
Maybe you have the
:hover
or:active
selector before:visited
?这篇关于a:visited在Mozilla Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!