css hack

1、常见的特殊符号的应用:

IE6:

       _selector{property:value;}

       selector{property:value;property:value !important;} //IE6 不支持同一选择符中的 !important

IE7:

      +selector{property:value;}

IE8:

      selector{property:value\0;}

IE6 & IE7:

      *selector{property:value;}

IE6 & IE7 & IE8:

      selector{property:value\9;}

 

IE6支持下划线_,IE7和firefox均不支持下划线。

于是大家还可以这样来区分IE6,IE7,firefox
background:orange;
*background:green;
_background:blue;
注:不管是什么方法,书写的顺序都是firefox的写在前面,IE7的写在中间,IE6的写在最后面。

posted @ 2014-07-08 18:29  code_flyer  阅读(203)  评论(0编辑  收藏  举报