自定义五列的 CSS 类
这种方法相对简单的,自定义一套CSS类,尽量和Bootstrap风格保持一致。
.col-xs-5ths, .col-sm-5ths, .col-md-5ths, .col-lg-5ths { position: relative; min-height: 1px; padding-right: 10px; padding-left: 10px; }
@media ( min-width : 768px) { .col-sm-5ths { width: 20%; float: left; } }
@media ( min-width : 992px) { .col-md-5ths { width: 20%; float: left; } }
@media ( min-width : 1200px) { .col-lg-5ths { width: 20%; float: left; } }
效果图:
脑筋急转弯小程序抢先体验
程序员专属工具箱
✍创作不易,求关注😄,点赞👍,收藏⭐️