<view class="grid">
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">95.64%</view>
<view class="grid-text">在线率</view>
</view>
</view>
<view class="grid">
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">95.64%</view>
<view class="grid-text">在线率</view>
</view>
</view>
<view class="grid">
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">168</view>
<view class="grid-text">数量</view>
</view>
<view class="grid-item">
<view class="grid-num">95.64%</view>
<view class="grid-text">在线率</view>
</view>
</view>
.grid {
display: flex;
flex-wrap: wrap;
margin: -5px; /* 设置负的外边距来补偿间隔 */
}
.grid-item {
flex: 0 0 calc(33.3333% - 10px); /* 设置每个宫格的占比和补偿间隔 */
text-align: center;
padding: 10px; /* 设置宫格内容内边距 */
margin: 5px; /* 设置宫格间隔 */
width: 215rpx;
height: 123rpx;
background: #EDF9FF;
border-radius: 12rpx 12rpx 12rpx 12rpx;
opacity: 1;
}
.grid-num{
color: #233AA8 ;
font-size: 34rpx;
}
.grid-text{
color: #72799D;
font-size: 26rpx;
}