ie6、7、8、9单独hack兼容写法

  1. <styletypestyletype=”text/CSS”> 
  2. #body{  
  3. border:2pxsolid#00f;/*Firefox的属性*/  
  4. border:2pxsolid#090\9;/*IE6/7/8的属性*/  
  5. border:2pxsolid#F90\0;/*IE8支持*/  
  6.  
  7. _border:2pxsolid#f00;/*IE6的属性*/  
  8. }  
  9.  
  10. style> 



1. _          IE6
  2. *          IE6/7
  3. !important IE7/Firefox
  4. *+         IE7
  5. \9         IE6/7/8
  6. \0         IE8
  7. 条件hack
       IE7以下版本
       IE7
       IE8
       IE8以上
相关文章: css hack全解,最齐全的ie css hack方式讲解

你可能感兴趣的:(css)