区别FF,IE7,IE6:
IE6能识别*,但不能识别 !important;
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;
(1)针对 *+html 与 *html
<html>
<head>
<style>
#wrapper { width: 120px;height:100px; background:#ff0; } /* FireFox */
*html #wrapper { width: 80px;} /* ie6 fixed */
*+html #wrapper { width: 60px;} /* ie7 fixed, 注意顺序 */
</style>
</head>
<body>
<div id="wrapper"></div>
</body>
</html>
(2)针对 !important 与 *html
<html>
<head>
<style>
#wrapper{
width: 120px;
*width: 60px !important;
*width: 80px;
height:100px;
background:#ff0;
}
/*注意 firefox的写在前面,IE7的写在中间,IE6的写在最后面*/
</style>
</head>
<body>
<div id="wrapper"></div>
</body>
</html>
(3) 还有可以利用的是ie6.0支持下划线(即"_")
<html>
<head>
<style>
#wrapper { width: 120px;*width: 60px;_width: 80px;height:100px; background:#ff0;}
/*注意 firefox的写在前面,IE7的写在中间,IE6的写在最后面*/
</style>
</head>
<body>
<div id="wrapper"></div>
</body>
</html>
分享到:
相关推荐
ie6 ie7 ff浏览器兼容 border:2px solid #00f; /*IE、ff的属性*/ border:2px solid #090\9; /* IE6/7/8的属性 */ border:2px solid #F90\0; /* IE8支持 */ *border:2px solid #F00; /* IE6、7支持 */ _border:2...
区别FF,IE7,IE6: background:orange;*background:green !important;*background:blue; 注:IE都能识别*;标准浏览器(如FF)不能识别*; IE6能识别*,但不能识别 !important, IE7能识别*,也能识别!important;...
在ie6 ie7 ie8 ff浏览器下显示不同的效果,测试的时候很好用哦。
CSS完美兼容IE6IE7FF的通用方法
CSS完美兼容IE6_IE7_FF的通用方法
DIV+css兼容性FFIE6IE7IE8IE9[借鉴].pdf
CSS样式兼容IE6、IE7、IE8、FF火狐浏览器的方法
图片等比例缩放个人最优化版(IE6,IE7,FF)
IE和FF(火狐)的部分区别,css样式等。
IE6,IE7,FF等浏览器不兼容原因及解决办法
浏览器兼容CSS ,IE6.IE7,FF
div css完美兼容IE6,IE7,FF的通用方法说明。
JS图片预览(兼容IE6、IE7、IE8和FF)
FF和IE的兼容性问题总结,FF和IE的兼容性问题总结,FF和IE的兼容性问题总结,FF和IE的兼容性问题总结
ie6_ie7_ie8_ff主流浏览器的兼容性
超简单表格隔行换色+鼠标经过变色(ie6,ie7,ff)
前端设计IE6IE7IE8IE9FF问题汇总IE和FirFox兼容问题[参照].pdf
css兼容IE6、IE7、FF的技巧 IE兼容问题 FF兼容问题