.element{
color:#000; //w3c标准
[;color:#f00;]; //Webkit(chrome和safari)
color:#666\9; //E8
*color:#999; //IE7
_color:#333; //E6
}
:root .element{color:#0f0\9;} //IE9
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (
-webkit-min-device-pixel-ratio:0) { .element{color:#336699;}} //opera
@-moz-document url-prefix(){ .element{color:#f1f1f1;}} //Firefox
兼容各大主流浏览器的常用CSS Hack汇总
最新推荐文章于 2021-07-14 00:07:55 发布