2 回答
TA贡献1725条经验 获得超7个赞
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row">
<div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
<div class="row">
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<!-- Columns are always 50% wide, on mobile and desktop -->
<div class="row">
<div class="col-xs-6">.col-xs-6</div>
<div class="col-xs-6">.col-xs-6</div>
</div>
这样就可以了。
TA贡献1803条经验 获得超6个赞
min-width,也可以利用媒体查询进行限制,比如说最大宽度在768px(移动端)
@media(max-width:768px){
.a{
min-midth:10px;// .a 是你的class类
}
}
- 2 回答
- 0 关注
- 2810 浏览
添加回答
举报