【问题标题】:how to add style css only on ie8 using inline css?如何使用内联 css 仅在 ie8 上添加样式 css?
【发布时间】:2016-04-09 09:47:22
【问题描述】:

如何使用内联 css 仅在 ie8 上添加样式 css?

我尝试使用此代码但不起作用。

<div style="width: 100%; *width: 1263px;"></div>

我在 ie8 上测试,但我只显示 width: 100%;

如何只在ie8上获取width: 1263px;

【问题讨论】:

  • 不确定是否可以...条件 cmets 怎么样?

标签: html css internet-explorer internet-explorer-8


【解决方案1】:

通过快速谷歌搜索:这个How to hack css Inline style only on IE? 问题似乎您可以尝试以下方法:

  • 对于 IE6 _
  • 对于 IE7 *
  • 对于 IE8 \0
  • 对于 IE9 \9

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-23
    • 2020-11-18
    • 2020-12-03
    • 1970-01-01
    • 2022-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多