gpt4 book ai didi

html - 为什么背景图像在 IE9 中不起作用?

转载 作者:太空宇宙 更新时间:2023-11-04 11:31:36 24 4
gpt4 key购买 nike

这是网站:

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 下的屏幕截图

enter image description here

最佳答案

使用

background-image: url(/image.whatever);

而不是

background: url (); code

关于html - 为什么背景图像在 IE9 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31992682/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com