1、IE6 css hack:css
1. *html Selector {} /* Selector 表示 css選擇器 下同 */ 2. Selector { _property: value; } /* property: value 表示 css 的屬性名: 屬性值 下同 */ 3. Selector { _property/**/: /**/value; } 4. Selector { -property: value; } /*IE6 css hack經常使用習慣推薦使用下劃線_ */
2、IE7 css hack:html
1. *+html Selector {} 2. *:first-child+html Selector {}
3、IE8 css hack:web
Selector { /* 注意看value值的 */ property: value1; /* W3C MODEL */ property: value2\0; /* IE 8+ */ property: value1\9\0; /* IE 9+ */ }
4、IE六、IE七、IE8共有的css hack:post
Selector { property: value\9; }
5、IE六、IE7共有的css hack:htm
1. Selector { *property: value; } 2. Selector { #property: value; } 3. Selector { +property: value; }
6、IE8+ css hack:get
Selector { property: value\0; }
7、IE9+ css hack:it
Selector { property: value\9\0; }