IE6,7,8,FF兼容表

测试代码:样式代码:p {color:#f00;} xhtml代码:<p>文字</p>

IE6

IE7

IE8

FF

备注

p{_color:red}

×

×

×

IE6专用

*html   p{color:#red;}

×

×

×

IE6专用

p{+color:red}

×

×

IE6,7专用

p{*color:red}

×

×

IE6,7专用

*html   p{color:red;}

×

×

IE6,7专用

p{*+color: red}

×

×

×

IE7专用

Body> p{ color: red }

×

屏蔽IE6

p{color:red!important;}

color:red}

×

屏蔽IE6,ie6无效

/*\*//*/p{+color:red}/**/

×

×

×

IE8专用

p{/*/*/color;/**/}

×

屏蔽IE8

p{color:red!important}

p{color:red}

都能用

html>/**/body .head{color:#red;}

×

×

只对IE8和FF有效

/9   >.head{color:#000\9} 

×

FF无效

注:IE都能识别*;标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important,
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;
                 IE6 IE7 FF
*                 √   √   ×
!important ×   √   √

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2021-11-15
  • 2022-12-23
  • 2021-12-20
  • 2021-06-06
  • 2021-12-06
  • 2021-05-31
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2021-12-22
  • 2021-09-18
  • 2022-02-13
  • 2021-10-02
  • 2021-09-24
相关资源
相似解决方案