css hack整理,更新于2011-7-17
来源:互联网 发布:天龙八部之宿敌 知乎 编辑:程序博客网 时间:2024/06/05 17:53
.box{color:red;*color:green; /* IE6 IE7 */ *+color:green; /* IE6 IE7 */ [color:green; /* IE6 IE7 */_color:blue; /* IE6*/color:yellow\9; /* IE6 IE7 IE8 IE9 */color:#CCCCCC\0; /* IE8 IE9 */color:blue\0/IE8+9; /* IE8 IE9 */ color:blue\9\0; /* IE9 */[;color:#0ad682;]; /* IE6 IE7 webkit*/}:root .box { color:pink \0/IE9; } /* IE9 */:root .box { color:#eaffa3\0/; } /* IE9 */:root .box { color:#eaffa3\0; } /* IE9 */html* .box{background-color:red;/* IE6 IE7 */}*+html .box{background-color:#0000FF;/* IE7 */}* html .box{background-color:#00FFFF;/* IE6 */}/* webkit */@media screen and (-webkit-min-device-pixel-ratio:0){.box { display:none; }}/* Opera */@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0){head~body .box { background-color:#CCC; }}