echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » 区分firefox与ie,分别设置不同的css的一个小办法 仲子说

2009-03-23

区分firefox与ie,分别设置不同的css的一个小办法

Posted in 随笔 at 15:35 Author:仲远

标签:

??firefox?ie??css????????????????????????????????????css????????????css???

???????????????ie???css????firefox???????????????????????css???????????????????????????????IE?Firefox???????????????????

IE????*;?????(?FF)????*?
IE6???*?????? !important,
IE7???*?????!important;
FF????*?????!important;

??????

  IE6 IE7 FF
* ? ? ×
!important × ? ?

????????css?????IE?Firefox?????“*”??????????

background-color:#3F87E4;
 *background-color:#2e7ee8;

????IE?Firefox???????????IE?????????????????Firefox????????????Firefox???????????IE????????????

??????????IE6?IE7???IE6?Firefox?IE7?Firefox???????????????

??IE6?IE7?

       background:green !important;
       background:blue;

??FF?IE7?IE6?

       background:orange;
       *background:green !important;
       *background:blue;

??????????????????????????firefox??????IE7??????IE6???????

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word