是否有一种简单的方法来命令列在bootstrap 3网格中折叠的方式?
这就是我所拥有的:
<div class='row'>
<div class='col-sm-8'>
<div class='box'>
This will be on the left on large screens but on the bottom on smaller screens.
</div>
</div>
<div class='col-sm-4'>
<div class='box'>
</div>
</div>
答案 0 :(得分:4)
您可以先制作移动(最小)布局,然后选择更大尺寸的推/拉..
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-push-8">
<div class="box">
4
</div>
</div>
<div class="col-sm-8 col-sm-pull-4">
<div class="box">
This will be on the left on large screens but on the bottom on smaller screens.
</div>
</div>
</div>