为什么IE7没有背景图片?
ie7中背景图片缺失;只有ie7有问题。
该网站位于http://www.competition4ct.com/。
这是我对背景图像使用的调用:
html { background : ("source-file.png");}
为什么背景图像没有出现?
The background image is missing in ie7; only ie7 has an issue.
The site is here http://www.competition4ct.com/.
This is the call I'm using for the background image:
html { background : ("source-file.png");}
Why isn't the background image appearing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您似乎缺少文件名前面的
url
。它应该是:请注意,我在这里还使用了
background-image
,而不是background
。您可以使用background
快捷方式,然后它看起来像这样:在
body
标记上放置背景也更常见,尽管我确信html
标签在大多数情况下也适用。You seem to be missing the
url
in front of your file name. It should be:Notice that I've also used
background-image
here, notbackground
. You can use thebackground
shortcut, then it would look something like this:It's also more usual to put a background on the
body
tag, although I'm sure thehtml
tag will work in most cases as well.不确定这是否导致问题,但您需要将“url”放在括号前面。使身体有底色也不得受伤。最后,仅“背景”属性可能需要更多输入,因为您一次设置了几项内容(并且您只是尝试执行背景图像)。所以:
或
有关更多信息,请参阅:
http://www.w3schools.com/css/pr_background.asp
请告诉我们这些解决方案是否可以解决您的问题。
Not sure if that's causing the problem, but you need to put "url" in front of the parentheses. May not hurt either to make the body have the background. Finally, just the 'background' property might require more input, as you set several things at once (and you're only trying to do the bg image). So:
or
For more info see:
http://www.w3schools.com/css/pr_background.asp
Let us know if any of these solutions solve your problem.