Bootstrap 3网格折叠顺序

时间:2014-05-15 21:23:38

标签: twitter-bootstrap twitter-bootstrap-3

是否有一种简单的方法来命令列在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>

1 个答案:

答案 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>

演示:http://www.bootply.com/gH5Ua0iy6i