col-md-2要居中显示5个20%怎么修改

ccol-md平分五个显示只有16%左右 这时候需要我们新增个5个的显示宽度。

.col-xs-5ths, .col-sm-5ths, .col-md-5ths, .col-lg-5ths {
    position: relative;
    min-height: 0px;
    padding-left: 0px;
    padding-right: 0px;
  }
  @media ( min-width : 768px) {
    .col-sm-5ths {
      width: 20%!important;
      float: left;
    }
  }
  @media ( min-width : 992px) {
    .col-md-5ths {
      width: 20%!important;
      float: left;
    }
  }
  @media ( min-width : 1200px) {
    .col-lg-5ths {
      width: 20%!important;
      float: left;
    }
  }

把上边这个代码加入到bootstrap.min 里边去 就可以平分5个的啦 div加css col-lg-5ths

原文链接:https://www.um80.com/1550.htm,转载请注明出处。

0
金秋上云特惠新人专享

评论0

本站所有素材,站长均亲自测试过,可放心使用,有什么问题联系我们!18091738064(微信)

社交账号快速登录

Copyright   ©2017-2021  U码80  陕ICP备17013443号-1  

陕公网安备 61032402000158号