[英]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.