【发布时间】:2011-11-02 17:53:43
【问题描述】:
如何以相同的表达式破解 IE6 和 IE7 的 CSS? (如果可能的话,当然)
-编辑-
我的意思是,
* html #div{ //hacks ie6}
*+html #div { //hacks ie7}
类似的表达方式会破解两者吗?
-edit2-
例如这个内联代码 HTML
<!--[if IE lte 7]>
<style type="text/css">
.contButton p a{ height:25px; width:auto; }
.contButton p a span{ height:25px;width:auto; }
</style>
<![endif]-->
只会影响 IE7 或更低版本,我如何在 CSS 中选择它???
示例:-*?? #div { //the CSS properties here will affect to IE6 and IE7 }
【问题讨论】:
-
"in [the] same expression"是什么意思?
-
我编辑了,如果我能更好地表达自己,请告诉我(请原谅我的英语)
-
mmmm.. 只会影响指定的浏览器
-
再次编辑了我的问题;我问如果 -*??存在
标签: internet-explorer-7 internet-explorer-6