加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – background-color不适用于:已访问但如果我将任何背景颜

发布时间:2020-12-14 16:38:53 所属栏目:资源 来源:网络整理
导读:background-color不适用于:已访问但如果我将任何背景颜色添加到{background:#fff},它是否有效,这是一个错误吗? 看到这个例子http://jsfiddle.net/jitendravyas/CMWWm/1/绿色背景a:访问将无法正常工作.但 现在,如果我在顶部添加{background:#fff},那么a
background-color不适用于:已访问但如果我将任何背景颜色添加到{background:#fff},它是否有效,这是一个错误吗?

看到这个例子http://jsfiddle.net/jitendravyas/CMWWm/1/绿色背景a:访问将无法正常工作.但

现在,如果我在顶部添加{background:#fff},那么a:绿色背景将开始工作. http://jsfiddle.net/jitendravyas/D6vGX/1/

解决方法

检查一下,Firefox做一些与隐私相关的修改:访问过,看起来很奇怪,

We’re limiting the CSS properties that can be used to style visited
links to color,background-color,border-*-color,and outline-color
and the color parts of the fill and stroke properties. For any other
parts of the style for visited links,the style for unvisited links is
used instead.

– 来自mozilla

http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读