CSS hack:区分IE6,IE7,IE8,firefox
区别不同浏览器,CSS hack写法:
大家可以这样来区分IE6,IE7,IE8,firefox
background:orange; background:red/9;*background:green;_background:blue;
注:不管是什么方法,书写的顺序都是firefox,IE8, IE7,IE6的顺序.
也可以使用以下代码兼容IE8 作用是以IE7模式运行,所以兼容IE7 也就兼容了IE8
<meta http-equiv="X-UA-Compatible" content="IE=7" />
解决IE6 双倍边距
display:inline;
也可以用_ 兼容IE6