相关文章:网页在ie6下正常在ie7下错位的问题
问:
ie6网页显示错位,ie7显示正常
我用dreamweaver制作的静态页面,div+css格式的,在ie7.0浏览器和火狐浏览器中显示都很正常,但是在ie6.0中显示就不正常,这是怎么回事呀,请高手帮忙?!
答:
区别不同浏览器,css hack写法:
区别ie6与ff:
backgroundrange;*background:blue;
区别ie6与ie7:
background:green !important;background:blue;
区别ie7与ff:
backgroundrange; *background:green;
区别ff,ie7,ie6:
backgroundrange;*background:green !important;*background:blue;
注:ie都能识别*;标准浏览器(如ff)不能识别*;
ie6能识别*,但不能识别 !important,
ie7能识别*,也能识别!important;
ff不能识别*,但能识别!important;
另外再补充一个,下划线"_",
ie6支持下划线,ie7和firefox均不支持下划线。
于是大家还可以这样来区分ie6,ie7,firefox
: background:orange;*background:green;_background:blue;
新闻热点
疑难解答