css hack

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

IE6:

       _selector{property:value;}

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

IE7:

      +selector{property:value;}

IE8:

      selector{property:value;}

IE6 & IE7:

      *selector{property:value;}

IE6 & IE7 & IE8:

      selector{property:value9;}

 

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

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

原文地址:https://www.cnblogs.com/weekend001/p/3832075.html