这是网站:
http://loveloverun.com/test/love_run/
我检查过它在 chrome 和 firefox 中正常工作。问题是在 IE9 中,背景图像仅适用于正文级别。
这是我的CSS:
body {
font-family : Open Sans;
min-height: 0px;
background: url("../img/front/bg.png") repeat;
height:auto;
}
而另一个 div 例如容器
.container {
width: 1022px !important; /*1302px*/
background-color:#ffffff;
background-clip:content-box;
}
还有一个例子(页脚):
#enquiry {
color:#ffffff;
background: url("../img/front/black.png") repeat;
}
我检查了文档类型,它没有遗漏任何标签。
还有一些地方和chrome/firefox不一样,所以我想知道:
1) 是否有插件可以增强兼容性?我试过modernizer,但是好像没有效果。
2) IE9后台问题如何解决?
更新:
body {
font-family : Open Sans;
min-height: 0px;
background-image: url("../img/front/bg.png");
background-repeat: repeat;
height:auto;
}
还是一样的结果
更新 2:
ie9 下的屏幕截图
最佳答案
使用
background-image: url(/image.whatever);
而不是
background: url (); code
关于html - 为什么背景图像在 IE9 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31992682/