1

你能看看这个jsfiddle和下面的代码,让我知道如何将背景图像添加到<li>导航栏的第一个吗?

.navbar-inner{
  background:none ! important;
}

li:first-child {
  background-image: url(http://themes/kids/images/lava-top.png);
  background-repeat: repeat-x;

}
4

1 回答 1

1

看到这个

.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; 
}
于 2013-10-03T03:38:35.853 回答