IE6 CSS hack:
1. *html Selector {} /* Selector means that the CSS selector is the same as */ 2. Selector { _property : value ;} /* Property:value represents the property name of the CSS: property value similarly */ 3. Selector { _property /**/: /**/ value ; }4. Selector {-property : value ;} /* ie6 css hack common habits recommended use underscore _ */
IE7 CSS hack:
{}{}
IE8 CSS hack:
/** Property: value1/** * property: value2\0/** property: value1\9 /**/}
CSS hack common to IE6, IE7, and IE8:
{ property: value\9;}
IE6, IE7 common CSS hack:
{ *property: value;} { #property: value;} { +property: value;}
ie8+ CSS hack:
{ property: value\0;}
ie9+ CSS hack:
{ property: value\9\0;}
How to judge:
<!–[if! Ie]><!–> In addition to IE can be recognized <!–<! [endif]–>
<!–[if ie]> all IE recognizable <! [endif]–>
<!–[if IE 6]> only IE6 recognizable <! [endif]–>
<!–[if LT IE 6]> IE6 and IE6 The following versions are recognized <! [endif]–>
<!–[if GTE IE 6]> IE6 and IE6 versions are recognized <! [endif]–>
<!–[if IE 7]> only IE7 recognizable <! [endif]–>
<!–[if LT IE 7]> IE7 and IE7 The following versions are recognized <! [endif]–>
<!–[if GTE IE 7]> IE7 and IE7 versions are recognized <! [endif]–>
<!–[if IE 8]> only IE8 recognizable <! [endif]–>
<!–[if IE 9]> only IE9 recognizable <! [endif]–>
CSS Hack (ie6-ie9+)