CSS Hack (ie6-ie9+)

Source: Internet
Author: User

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+)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.