您可以使用适当的 Bootstrapcol=*
类来实现这一点:
<div class="container">
<div class="row">
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">1</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">2</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">3</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">4</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">5</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">6</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">7</div>
<div class="col-lg-1 col-md-3 col-sm-4 col-xs-6">8</div>
</div>
</div>
对于您的 UL 列表,它看起来像..
<div class="row">
<ul class="list-unstyled">
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="index.html">Home</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="services.html">Services</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">Studies</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">References</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">Login</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">Press</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">Contact</a>
</li>
<li class="col-lg-1 col-md-3 col-sm-4 col-xs-6">
<a href="404.html">Impressum</a>
</li>
</ul>
</div>
http://bootply.com/88121