Home >Web Front-end >HTML Tutorial >Why can't I add a background image to my navigation bar DIV_html/css_WEB-ITnose

Why can't I add a background image to my navigation bar DIV_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:241800browse

#globallink{
width:100%;
background:url(image/12.jpg) repeat-x;

}
#globallink ul{list-style-type :none;
padding:0px;
margin:0px;
background:url(image/11.jpg) repeat-x; ;
font-family:"Microsoft Yahei";
float:left;
text-align:center;
idth:167px;
height:42px;

}
#globallink a{display:block;
padding:9px 5px 11px 5px;
margin:0px;
}

Reply to discussion (Solution)

Check the image path

#globallink li{font-size:30px;

font-family:"Microsoft Yahei";
float:left;
text-align:center;
idth:167px; //There is also a mistake in writing this, which may cause the effect not to come out.
height:42px;


weidth is when I copy it Wrong, look at my DIV

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