flex—骰子两点
<div class="box">
<div class="item"></div>
<div class="item"></div>
</div>
1、display:flex && justify-content: space-between
.box{
height: 80px;
width: 80px;
background-color: wheat;
display: flex;
justify-content: space-between;
border-radius: 10px;
}
2、align-self: flex-end
.item:nth-child(2){
align-self: flex-end;
}
最后一步,给弹性盒加一个padding或者给弹性元素加一个margin