<div class="test">test</div><style>
.test{
width:200px;
height:200px;
background:green; /* 默认 显示绿色 */
background:yellow\9; /* ie8 显示黄色 */
*background:red; /* ie7 显示红色 */
_background:blue; /* ie6 显示蓝色 */
}
</style>
//本机没有测试环境,请大家帮手测试一下代码, 结果如注解一样,,
.test{
width:200px;
height:200px;
background:green; /* 默认 显示绿色 */
background:yellow\9; /* ie8 显示黄色 */
*background:red; /* ie7 显示红色 */
_background:blue; /* ie6 显示蓝色 */
}
</style>
//本机没有测试环境,请大家帮手测试一下代码, 结果如注解一样,,
IE5-8绿色
Firefox
Opera
Chrome