[英]one block at the bottom, another at the top
另一個div內部有2個div。 第一個div必須在頂部,第二個div應該在底部。 父div的高度可能會更改,頂部div的高度也可能會更改。 知道這一點后,如何將第二個塊定位在底部? 所以我有這樣的事情:
<div id="parentdiv">
<div id="div1" style="width:100px;height:100px;">top div</div>
<div id="div2" style="width:100px;height:100px;">bottom div</div>
</div>
但是parentdiv的高度可能會發生變化,並且div2必須保持在底部。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.