总结一下IE6和 IE7和 Firefox 的CSS hack写法
发表时间:2007-06-11内容来源:站长资讯收集整理作者:佚名
形象的总结一下Firefox 、IE6、IE7三种浏览器的CSS Hack写法:(其中橙色代表FF、蓝色代表IE6、绿色代表IE7)
区别IE6与FF:
background: orange; *background: blue;
区别IE6与IE7:
background: green !important; background: blue;
区别IE7与FF:
Background: orange; * background: green;
区别FF,IE7,IE6:
background: orange; *background: green !important; *background: blue;
备注:
IE都能识别*,标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important;
IE7能识别*,也能识别 !important;
FF不能识别*,但能识别 !important;
不管是什么方法,书写的顺序都是Firefox的写在前面,IE7写在中间,IE6写在最后面。
区别IE6与FF:
background: orange; *background: blue;
区别IE6与IE7:
background: green !important; background: blue;
区别IE7与FF:
Background: orange; * background: green;
区别FF,IE7,IE6:
background: orange; *background: green !important; *background: blue;
备注:
IE都能识别*,标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important;
IE7能识别*,也能识别 !important;
FF不能识别*,但能识别 !important;
不管是什么方法,书写的顺序都是Firefox的写在前面,IE7写在中间,IE6写在最后面。
- 站长资讯刊登此文只为传递信息,并不表示赞同或者反对作者观点。
- 如果此内容给您造成了负面影响或者损失,本站不承担任何责任。
- 如果内容涉及版权问题,请及时与我们取得联系。
ps制作web2.0网页布局
10个最受欢迎的Linux
超级网银即将上线
PS制作六角背景虚化效果
给JS新手的24条实用建议
30个优秀CSS技术和实例
谷歌公布前1千名网站
Photoshop鼠绘卡通小罐





文章评论