我无法将:visited
超链接的背景色设置为其他背景色。
这是Google Chrome浏览器的已知问题吗?我见过有人提出与背景图片类似的问题。设置color属性似乎工作正常。
这是我使用的代码:
a:visited{
background-color: red;
}
相反,使用以下内容:
a {
background-color: white;
}
a:visited{
background-color: red;
}
出于安全原因-特别是为了防止历史记录嗅探-Chrome非常严格地限制了使用:visited选择器的操作。
出于安全原因不支持这种声音,this answer中有详细说明,Firefox也将使用这种声音。>