Boostrap3 li元素橫向:html
<ul class="nav navbar-nav list-inline"> <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">FB</a></li> <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">G+</a></li> <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">T</li> </ul>
Boostrap4 以上方法不行,得如下方法:htm
<ul class="list-inline"> <li class="list-inline-item"><img src="http://static.open-open.com/news/uploadImg/20160727/20160727083501_753.jpg" width="100px" </li> <li class="list-inline-item"><img src="http://static.open-open.com/news/uploadImg/20160727/20160727083501_753.jpg" width="100px" </li> <li class="list-inline-item"><img src="http://static.open-open.com/news/uploadImg/20160727/20160727083501_753.jpg" width="100px" </li> <li class="list-inline-item"><img src="http://static.open-open.com/news/uploadImg/20160727/20160727083501_753.jpg" width="100px" </li> </ul>