ie6和ie7
#tip {
*background:black; /*IE7 背景变黑色*/
_background:orange; /*IE6 背景变橘色*/
}
IE8和IE9
:root .test { color:#963\9; } /* IE9 only */
firefox
@-moz-document url-prefix(){.bt_comment_ico{top:-1px;}}
ie系列
*html .ico_tj{background:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=scale,src=‘http://#‘);}
FILTER: progid:DXImageTransform.Microsoft.gradient(GradientType:1, startColorstr=#70000000,endColorstr=#70000000);
filter:alpha(opacity=80);
opacity:0.8;
常见浏览器CSS hack方法总结
时间: 2024-11-08 12:31:12