这篇文章实时更新
属于IE的专属写法
其中,S表示Standards Mode即标准模式,Q表示Quirks Mode,即兼容模式hack | 示例 | IE6(S) | IE6(Q) | IE7(S) | IE7(Q) | IE8(S) | IE8(Q) |
* | *color | Yes | Yes | Yes | Yes | No | Yes |
+ | +color | Yes | Yes | Yes | Yes | No | Yes |
- | -color | Yes | Yes | No | No | No | No |
_ | _color | Yes | Yes | No | Yes | No | Yes |
# | #color | Yes | Yes | Yes | Yes | No | Yes |
\0 | color\0 | No | No | No | No | Yes | No |
\9 | color\9 | Yes | Yes | Yes | Yes | Yes | Yes |
!important | color:blue !important; color:green; | No | No | Yes | No | Yes | No |
//html //css//IE6:_selector{property:value;}selector{property:value;property:value !important;} //IE6 不支持同一选择符中的 !important//IE7:+selector{property:value;}//IE8:selector{property:value\0;}//IE6 & IE7:*selector{property:value;}//IE6 & IE7 & IE8:selector{property:value\9;}
双边距
产生的条件 diaplay:block; float:left;margin:0 20px;
解决方法