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

来源:互联网 发布:骷髅骨架软件 编辑:程序博客网 时间:2024/06/05 17:21
  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      <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]--> IE7以下版本      <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]--> IE7      <!--[if IE 8]> <html class="no-js lt-ie9"><![endif]--> IE8      <!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]--> IE8以上
相关文章:css hack全解,最齐全的ie css hack方式讲解
0 0
原创粉丝点击