【问题标题】:Outlines on links in IE9 remains when focus is changed更改焦点时,IE9 中的链接轮廓仍然存在
【发布时间】:2013-01-01 11:58:55
【问题描述】:

我有一些 CSS 来更改页面轮廓的样式。

*:focus{outline: #5ab6df dotted 2px; }   

但是当我点击不同的链接时,部分大纲将保留在以前的链接上。

任何帮助将不胜感激。 -IE 9,不在兼容模式下运行。

【问题讨论】:

  • 我在最新版本的 Chrome(版本 27)中也看到了这个问题
  • 所以这似乎只有在大纲样式设置为“自动”时才会在 Chrome 上发生。 (但这仍然是一个问题!)

标签: css internet-explorer-9


【解决方案1】:

您是否尝试在 *-selector 中将 outline-property 设置为 none?

* { outline:none; }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-02
    • 1970-01-01
    • 1970-01-01
    • 2013-04-17
    • 2012-02-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多