IE6,7,8,FF兼容表

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 ×   √   √

posted @ 2009-11-24 10:54  zxlin25  阅读(428)  评论(0编辑  收藏  举报