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
Release: 2016-06-24 12:14:24
Original
1810 people have browsed it

#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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template