【问题标题】:slash with number after color declaration in CSS [duplicate]CSS中颜色声明后带有数字的斜线[重复]
【发布时间】:2015-01-14 01:06:52
【问题描述】:

我在 Wordpress 主题的 CSS 中的几个位置找到了这个:

.green {background-color: #080808 \9;}

\9 是做什么用的?

【问题讨论】:

    标签: css


    【解决方案1】:

    \9 是 Internet Explorer 7、8 和 9 特有的“CSS hack”。

    这仅仅意味着以\9; 代替; 结尾的特定CSS 行仅在IE 7、8 和9 中有效。

    在你的例子中,

    background-color: #080808 \9; 表示 background-color #080808 仅在使用 IE 7、8 和 9 时应用。

    欲了解更多信息,请访问webdesignandsuch.com/ie9-specific-css-hack/

    【讨论】:

      猜你喜欢
      • 2012-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-16
      • 2014-07-11
      • 1970-01-01
      • 2016-08-28
      相关资源
      最近更新 更多