标题中定义的背景图像命令不工作



我一直在挠头,为什么背景图像功能不适合我。有什么建议吗?是的,我已经知道我是一个有严重注意力问题的傻瓜。

<head> 
<style type="text/css"> 

<!-- As you can see below, i tried to include a header image in 3 different ways -->
header {height:200px; background-url:(http://i.imgur.com/HtAvI.jpg) ; }
#header-wrapper { width:660px; margin:0 auto 10px; border:1px solid $bordercolor; background:url(http://i.imgur.com/HtAvI.jpg) no-repeat; height:400px; }
#header{background image: url(http://i.imgur.com/HtAvI.jpg);}
<!-- i tried including it in the body as well, to no avail -->
body { background image: url(http://i.imgur.com/HtAvI.jpg) ; }
p {color: red}
</style>
</head>
<body>
<p>this is text</p>
</body>"

background image:改为background-image:。也没有像background-url

这样的属性

background-url。没有background<space>image。一个是background-image,一个是background

一旦你解决了这些问题,图像应该显示正确。

最新更新