Bootstrap在手机上隐藏一些colls



我想在桌面显示所有的颜色(5)在移动端只有3。这是可能做与标准引导类?

 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/pigu_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/gelezinis_final1-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
    </div>

可以通过hidden-xs class:请检查codepen:codepen.io/不久/钢笔/JYMNvj

  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/pigu_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/gelezinis_final1-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 hidden-sm hidden-xs col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
       <div class=" col-lg-2 col-md-2 hidden-sm hidden-xs col-centered " style="text-align: center; margin-right: 10px; overflow: hidden">
          <a href="">
          <img src="http://192.168.0.185/image/cache/data/teo_final-100x100.png" alt="">
          </a>
       </div>
    </div>

它将在小型和移动设备上隐藏最后两列如果你想让它在小型设备上可见,你可以删除hidden-sm

相关内容

  • 没有找到相关文章

最新更新