CSS Hack | CSS补丁

  • IE5.5 only
    selector { property: value; p\roperty: normal-value; }
  • IE6 only
    * html #div{}
    or
    _color : orange;
  • IE 7 only
    *:first-child+html {}
  • IE8 Only
    .test { color /*\**/: blue\9 }

或者:.test  color:#09F\0/;  /* IE8 only */ }

  • IE 9 only
    :root .test{color:green \ ;}
  • Chrome only
    body:nth-of-type(1) p{color:red;} /* Chrome、Safari支持 */

more css hack for different browser | 更多针对不同浏览器的CSS 补丁:

http://www.communis.co.uk/dithered/css_filters/css_only/