Firefox
@-moz-document url-prefix() {
.cssSelector {
font-size: 14px;
}
}
Chrome
@media screen and (-webkit-min-device-pixel-ratio:0) {
#test1{color:red;}
}
IE6/7/8/9+
<!--[if lt IE 7 ]><body class="ie ie6"><![endif]-->
<!--[if IE 7]><body class="ie"><![endif]-->
<!--[if IE 8]><body class="ie"><![endif]-->
为IE附加新的CSS文件IE7/8多加一个,IE6多加两个,不要污染别的CSS文件
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" href="css/show_ie.css">
<![endif]-->
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" href="css/show_ie6.css">
<![endif]-->