First, IE6 CSS hack:
1. *html Selector {}/* Selector indicates that the CSS selector is */2. Selector {_property:value;}/* Property:value represents the property name of the CSS: The property value is the same as */3. Selector {_property/**/:/**/value;} 4. Selector {-property:value;}/*ie6 css hack common habits recommended to use the underscore _ */
Second, IE7 CSS hack:
1. *+html Selector {}2. *:first-child+html Selector {}
Third, IE8 CSS hack:
Selector {/* Pay attention to the value of */ property:value1; */* MODEL */ property:value2\0;/* IE 8+ */ property:value1 \9\0; /* IE + */}
Four, IE6, IE7, IE8 common CSS hack:
Selector {property:value\9;}
Five, IE6, IE7 common CSS hack:
1. Selector {*property:value;} 2. Selector {#property: value;} 3. Selector {+property:value;}
VI. ie8+ CSS hack:
Selector {property:value\0;}
VII, ie9+ CSS hack:
Selector {property:value\9\0;}
Eight, the way of judging:
<!–[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]–>
Project |
Example |
Description |
! |
[If! IE] |
The NOT operator. This was placed immediately in front of the feature, operator, or subexpression to reverse the Boolean meaning of the Expre Ssion. Not operator. This is the meaning of a Boolean expression that swings immediately in front of the function, operator, or sub-expression. |
Lt |
[If Lt IE 5.5] |
The Less-than operator. Returns true if the first argument is less than the second argument. Less than operator. Returns true if the first argument is less than the second argument. |
Lte |
[If LTE IE 6] |
The Less-than or equal operator. Returns true if the first argument is less than or equal to the second argument. Less than or equal to the operation. Returns true if the first parameter is less than or equal to the second argument. |
Gt |
[If GT IE 5] |
The Greater-than operator. Returns true if the first argument is greater than the second argument. Greater than operator. Returns true if the first argument is greater than the second argument. |
Et |
[If GTE IE 7] |
The Greater-than or equal operator. Returns true if the first argument is greater than or equal to the second argument. Greater than or equal to the operation. Returns true if the first parameter is greater than or equal to the second argument. |
( ) |
[If! (IE 7)] |
subexpression operators. Used in conjunction with the Boolean operators to create more complex expressions. Sub-expression operator. Used in with Boolean operators to create more complex expressions. |
& |
[If (GT IE 5) & (LT IE 7)] |
The AND operator. Returns true if all subexpressions evaluate to True And operator. Returns true if all sub-expressions evaluate to True |
| |
[If (IE 6) | (IE 7)] |
The OR operator. Returns true if any of the subexpressions evaluates to True. Or operator. Returns true if the sub-expression evaluates to True.
|
CSS Hack Daquan (IE6, IE7, IE8, IE9 css Hack)