【发布时间】:2018-08-17 20:16:48
【问题描述】:
如何使用 flexbox 将按钮定位在最底部?
还是应该使用position: absolute?
.container {
display: flex;
flex-direction: column;
border: 1px solid;
height: 180px;
}
button {
align-self: center;
}
<html>
<body>
<div class="container">
<p> Paragraph one </p>
<p> Paragraph two </p>
<button > on the very bottom </button>
</div>
</body>
</html>
【问题讨论】: