我为div编写了CSS,添加了FF、CH上可见的背景图像。。。但是,它没有显示在IE 8 上
css文件
#headerrotetor{
width: 100%;
max-width: 1600px;
max-height: 660px;
background-image: url(images/hm_bg.jpg);
background-repeat: no-repeat;
margin: 0 auto;
background-size:contain;
}
我已经为IE维护了CSS,该文件有
#headerrotetor{
height: 660px;
width: 1600px;
}
背景图像大小340Kb,有人能帮我吗,谢谢
您使用了正确的路径吗?
尝试将背景应用于body标记。以下代码支持IE 4.0以上版本。
body {
background-image: url('paper.gif');
background-repeat: no-repeat;
background-position: right top;
}
注意:IE8及更早版本不支持在一个元素上显示多个背景图像。