日期:2014-05-17  浏览次数:20709 次

css设置背景图片问题
我在css中设置背景图片时,图片不是全屏出现,问题出在哪??、
下面是代码和截图:
css代码:body{font-family:verdana,Arial,sans-serif;
background-image:url(background.jpg);
background-colar:#eeeeee;
background-repeat:repeat;
background-position:0% 0%;
margin:0px;
height:100%;
width:100%;
}
#leftcolumn{float:left;
width:200px;
background-colar:#eeeeee;
color:#000000;
margin:0px 20px 0px 0px;
}
#rightcolumn{background-color:#eeeeee;
}
#logo{background-color:#eeeeee;
color:#cc66cc;
font-size:20px;
padding:10px 0px 0px 0px;
}
#content{padding:0px 0px 0px 0px;
background-color:#eeeeee;

}
#comment{padding:50px 0px 0px 0px;
float:right;
text-align:center;
width:80%;
background-color:#eeeeee;
}
.footer{font-size:xx-small;
text-align:center;
}
.navBar{text-decoration:none;
list-style-type: none;
font-size:xx-large;
}
a.narBar:link{color:#000066;
backgrount-color:#eeeeee;
}
a.narBar:visited{color:#000000;
backgrount-color:#eeeeee;
}
a.narBar:hover{color:#cc66cc;
backgrount-color:#eeeeee;
}
ul{border-style:none;
}
li{padding:5px;
margin:0px;



截图如下;

不可以上图


我说说情况:
就是背景图片在下方显示了,上面没有

------解决方案--------------------
background-colar是color
backgrount是background。。不知道是不是你别的背景颜色把她覆盖了
------解决方案--------------------
想发图片的话可以把图片传到你空间里。。。然后用那个地址就可以了。。。我只拷了这段代码做了测试body{font-family:verdana,Arial,sans-serif;
background-image:url(background.jpg);
background-colar:#eeeeee;
background-repeat:repeat;
background-position:0% 0%;
margin:0px;
height:100%;
width:100%;
}
没有出现问题。。。你可以一个一个样式测一下。。。可能是被别的东西覆盖了。。。