all IE:
Selector{property:value9;}
IE7:
*+html Selector{property:value;}
*:first-child+html Selector {property:value;}
Selector {*property:value;}
Selector {+property:value;}
IE7,IE7-:
*body Selector {+property:value;}
IE8:
@media screen {Selector{property:value;}}
IE8+:
Selector {property: value ;}
IE8/9/10:
Selector {property: value9 ;}
IE10:
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
Selector {property: value;} /* for IE10+ 此写法可以适配到高对比度和默认模式,故可覆盖所有ie10的模式 */
}
IE9、10、火狐、谷歌:
:root Selector {property: value;}
Firefox火狐(支持所有Gecko内核的浏览器,包括火狐):
@-moz-document url-prefix() { Selector { property: value; } }
谷歌:
@media screen and (-webkit-min-device-pixel-ratio: 0) { Selector { property: value; } }