align-content 属性用于修改 flex-wrap 属性的行为。类似于 align-items, 但它不是设置弹性子元素的对齐,而是设置各个行的对齐
<view class='zong'>
<view class='fangxing'>
<text>01</text>
</view>
<view class='fangxing'>
<text>02</text>
</view>
<view class='fangxing'>
<text>03</text>
</view>
<view class='fangxing'>
<text>04</text>
</view>
<view class='fangxing'>
<text>05</text>
</view>
</view>
.zong{
border: 1px solid gainsboro;
margin: 5px;
height: 300px;
display: flex;
flex-wrap: wrap;
align-content: flex-end;
}
.fangxing{
width: 100px; height: 50px;
background-color: #f5f5dc;
margin: 10px;/*每个方框的外边距*/
}
效果图