你能看看这个jsfiddle和下面的代码,让我知道我如何才能将背景图像添加到导航栏的第一<li>
吗?
.navbar-inner{
background:none ! important;
}
li:first-child {
background-image: url(http://themes/kids/images/lava-top.png);
background-repeat: repeat-x;
}
看到这个。
.navbar .nav > li:first-child > a, .navbar .nav > li:first-child > a:hover, .navbar .nav > li:first-child > a:focus
{
background-image: url(https://www.google.com/images/srpr/logo6w.png);
background-repeat: repeat-x;
}