#test
{
width:300px;
height:300px;
background-color:blue; /*all*/
background-color:red\9; /*ie6,7,8,9*/
background-color:red \9; /*加空格ie8*/
background-color:yellow\0; /*ie8, 高版本opera*/
background-color:yellow \0; /*加空格是非ie8*/
background-color:yellow\9\0; /*没有空格ie9*/
*+background-color:pink; /*ie7*/
*background-color:pink; /*ie6,7*/
_background-color:orange; /*ie6*/
}
:root #test { background-color:purple\9; } /*ie9*/
@media screen and (-webkit-min-device-pixel-ratio:0){ #test {background-color:gray;} } /*chrome and safari*/
@media all and (min-0px){ #test {background-color:black;} } /* IE9支持 */
@media all and (min-0px){ #test {background-color:black\0;} }/*opera */