【发布时间】:2017-09-26 16:06:21
【问题描述】:
我有一个 div,里面有两个项目。我将它们放在一列中,需要第一项证明:中心,第二项证明:flex-end。我该怎么做?
HTML:
<div class="wrapper wrapper--login">
<h1 class="wrapper--login__title">
Demo or Die
</h1>
<a class="btn wrapper--login__btn" href="#">
Log in
</a>
</div>
css:
.wrapper--login{
display: flex;
flex-direction: column;
justify-content: flex-end;
}
【问题讨论】:
-
@LGSon 我的意思是垂直