-1
我有一個頁面上的以下佈局:在較小的屏幕尺寸,我想下面的佈局引導3:推/拉列僅適用於小屏幕設備
<div class="col-sm-3 col-xs-6">1</div>
<div class="col-sm-3 col-xs-6">2</div>
<div class="col-sm-3 col-xs-6">3</div>
<div class="col-sm-3 col-xs-6">4</div>
<div class="col-sm-3 col-xs-6">5</div>
<div class="col-sm-3 col-xs-6">6</div>
<div class="col-sm-3 col-xs-6">7</div>
<div class="col-sm-3 col-xs-6">8</div>
--------- ----- ----- ----- -
| 1 | 2 | 3 | 4 |
-------------------------------
| 5 | 6 | 7 | 8 |
但是:
------- ----- ---
| 1 | 2 |
----------------
| 5 | 6 |
----------------
| 3 | 4 |
-----------------
| 7 | 8 |
我正在嘗試的是:
<div class="col-sm-3 col-xs-6">1</div>
<div class="col-sm-3 col-xs-6">2</div>
<div class="col-sm-3 col-xs-6 col-xs-push-6">3</div>
<div class="col-sm-3 col-xs-6 col-xs-push-6">4</div>
<div class="col-sm-3 col-xs-6 col-xs-pull-6">5</div>
<div class="col-sm-3 col-xs-6 col-xs-pull-6">6</div>
<div class="col-sm-3 col-xs-6">7</div>
<div class="col-sm-3 col-xs-6">8</div>