Home  >  Article  >  Web Front-end  >  请教一个CSS中背景的问题_html/css_WEB-ITnose

请教一个CSS中背景的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:43:08718browse

CSS 背景

我想把body页面居中位置加个背景条,但怎么加都加不上,各位大哥大姐,能帮忙看看问题吗,我的代码是

body {
margin:0 200px;
padding:0;
width:960px;
font-style:Courier New;
float:left;
background:url(add.png) repeat-y 50% 0;
overflow:auto;

麻烦大家了

回复讨论(解决方案)

自己给自己结贴,用相对路径就好了。。。url(../images/add.png) repeat-y 50% 0;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn