我很努力地學習如何使用Bootstrap 3正確地排列事情。當列包裝時,我希望它滾動到底部最後一個div。Bootstrap 3 - 列包裝 - 佔用列中的可用空間
很多時候,我會有一個超出主體長度的邊欄。側欄中的信息比主框更重要,但比底部的信息更重要。
如何在下面的示例中獲得兩個綠色部分以排列在更大的屏幕上?
查看示例代碼 - http://www.bootply.com/42XM6PGoDS
.example{
background-color: green;
min-height:200px
}
.example2{
background-color: red;
min-height:500px;
}
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="example">
Main Body of Information
</div>
</div>
<div class="col-lg-4">
<div class="example2">
Important information on sidebar when on a large screen
</div>
</div>
<div class="col-lg-8">
<div class="example">
Less important information
</div>
</div>
</div>
</div>
這是我結束了自己,它產生了我想要在一個更大的屏幕上,但現在如果你在一個較小的屏幕上,該列將不再重新調整大小。這在示例中是可見的。 – 2015-03-31 19:23:13