标签:条件 and idt hack amp 兼容 property tab mod
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;
解决方法
标签:条件 and idt hack amp 兼容 property tab mod
原文地址:http://www.cnblogs.com/heyinwangchuan/p/6087123.html