码迷,mamicode.com
首页 > Web开发 > 详细

css hack

时间:2014-07-09 16:42:13      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:strong   应用   amp   re   c   css   

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的写在最后面。

css hack,布布扣,bubuko.com

css hack

标签:strong   应用   amp   re   c   css   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!