【问题标题】:Can anyone explain the meaning of *width in a CSS class? [duplicate]谁能解释 CSS 类中 *width 的含义? [复制]
【发布时间】:2012-12-18 06:35:42
【问题描述】:

可能重复:
CSS reset - purpose of asterik within a style

谁能解释 CSS 类中*width 的含义?在阅读我的 CSS 类时,我发现:

 width:188px!important; *width:181px!important;

*width是什么意思?

【问题讨论】:

    标签: html css


    【解决方案1】:

    *width 是特定于浏览器的 hack。它在 Internet Explorer 7 和更早版本上的行为就像 width 一样,对其他浏览器没有影响。

    http://en.wikipedia.org/wiki/CSS_filter#Star_hack

    【讨论】:

    • 非常感谢......!!!!!!这就是我需要的...>!!!!
    【解决方案2】:

    宽度:181px !important; "" 是针对 IE 7 浏览器的 hack。

    【讨论】:

    • 你能解释一下吗...????
    • 您对“针对 IE 7 浏览器的 hack”有什么不明白的地方?
    • 看看如果你只想为 IE7 编写 css,有两种方法:1 是带有单独 css 文件的 IE 条件 cmets,另一种是如果你想在你的主 css 文件中为 IE7 编写 css那时应该只适用于 IE7 * hack 对针对 IE 7 Brwoser 很有用..
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多