<view class="content"> <view class="content-item"></view> <view class="content-item"></view> <view class="content-item"></view> <view class="content-item"></view> <view class="content-item"></view> </view> .content{ display: flex; flex-wrap: wrap; padding: calc((100vw - 40vw - 40vw)/6); } .content-item{ width: 40vw; height: 140px; background: #FFFFFF; margin: calc((100vw - 40vw - 40vw)/6); }