0
<style>
.xx{
\t min-height: 40px;
\t margin-top:15px;
\t background: white;
}
.yy{
\t min-height: 100px;
\t margin-top: 15px;
\t background: white;
}
.zz{
\t min-height: 95px;
\t margin-top: 15px;
\t background: white;
}
.pp{
\t min-height: 120px;
\t margin-top: 15px;
\t background: white;
}
</style>
<div style="background:grey; min-height:600px;">
<div class="row">
<div class="col-md-4">
<div class="text1 xx">This is text 1</div>
<div class="text3 xx">This is text 3</div>
</div>
<div class="col-md-4">
<div class="text2 xx">This is text 2</div>
<div class="text4 xx">This is text 4</div>
</div>
<div class="col-md-4">
<div class="text6 zz">This is text 6</div>
<div class="text7 pp">This is text 7</div>
</div>
<div class="col-md-8">
<div class="text5 yy">This is text 5</div>
</div>
</div>
</div>
問題を残しました。
要件:5
は、3列目の高さで乱さないようにしてください。3
と4
のちょうど下に整列する必要があります。さらに、ウィンドウをモバイルサイズにリサイズするときは、1,3,2,4,6
これまでのところ私は試しました: divをthis is text 5
と一緒に移動すると、 this is text 6
は可変の高さであるため、問題を解決してください。 6
& 7
は同じ列にある必要がありますが、何らかの形で5
を整列させる必要があります。
「6」の高さを上げようとすると、高さが可変であると言いました。 div '5'もシフトダウンすることに気づくでしょう –
あなたのケースのbootplyを作成し、6と7を含むサイドバー(col4)を作成し、1,2,3を含むmain(col8)を作成しました。 、4,5。参照してくださいhttp://www.bootply.com/SGeY3ZYnBY –
うーん..私も同じ考えていた。この構造の問題は、私が質問で言及したモバイルビューで表示されたときに1,3,2,4,6,5,7の注文が欲しいということです。 –