我正在尝试使用 css 为 div 提供背景图像。这是我的 CSS
.header {
background: url("../images/header1.png") no-repeat scroll right 15px rgba(0, 0, 0, 0);
height: 55px;
padding: 5px 0 0;
width: 100%;
}
即使在 IE9 和 IE10 上,这在 firefox 和 chrome 上也能正常工作,但它在 IE8 或更早版本中不起作用。我用谷歌搜索并也提到了这个问题,但它没有帮助。
最佳答案
.header
{
background: url("../images/header1.png");
background-repeat:no-repeat;
background-position:right 15px;
height: 55px;
padding: 5px 0 0;
width: 100%;
}
关于css - 背景图像 css 在 IE7、IE8 中不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21159472/