.box {
padding:20rpx 30rpx;
box-sizing: border-box;
height: 240rpx;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
}
.item {
background-color: #ccc;
width: 200rpx;
height: 200rpx;
text-align: center;
line-height: 200rpx;
margin-bottom: 20rpx;
}
//关键是这里
.box::after{
content: '';
width:200rpx;
}
<view class="box">
<view class="item">12</view>
<view class="item">32</view>
<view class="item">56</view>
<view class="item">78</view>
<view class="item">90</view>
</view>