#menu{display: none\9;} (ie9以上浏览器,包含ie9)
/* IE9+ */ (ie9以上浏览器,包含ie9)
@media all and (min-width:0) {
.class{
color:red;
}
}
/* IE10+ */(ie10以上浏览器,包含ie10)
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.class{
color:red;
}
}
/* Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
.class{
color:red;
}
}
/* Firefox */
@-moz-document url-prefix() {
.class{
color:red;
}
}
转载于:https://my.oschina.net/u/2393989/blog/2996794