我有两个div元素。我想知道如何做到以下几点:如何把div元素放到另一个div元素的底部
我有HTML和CSS:
<div class="main">
<div class="iner"></div>
</div>
而且
.main{
width: 1000px;
height: 500px;
background-color: #111210;
}
.iner{
width: 250px;
height: 250px;
background-color: #34cb2f;
margin: 0 auto;
bottom: 0;
}
这个CSS代码中心核能研究所块,但它在顶部位置显示。 如何将iner块放在主外块的底部,就像在imege上一样? 谢谢!
有没有需要的保证金,因为它的位置是绝对的。 –
**谢谢** @JoeSaad是的,忽略了它。 –