You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.1 KiB

/* pages/gride/gride.wxss */
.gride {
display: flex;
flex-wrap: wrap; /* 自动换行 */
padding: 10rpx;
}
.item {
width: 33.333%; /* 每行 3 个 */
display: flex;
flex-direction: column; /* 图片在上,文字在下 */
align-items: center; /* 内容居中 */
margin: 10rpx 0;
}
.item image {
width: 80rpx;
height: 80rpx;
margin-bottom: 5rpx;
}
.item text {
font-size: 24rpx;
}
swiper{
height: 350rpx;
}
swiper image{
width: 100%;
height: 100%;
}
.grids{
display: flex;
flex-wrap: wrap;
}
/* ① 九宫格整体 */
.grids {
display: flex;
flex-wrap: wrap;
}
.grids .item {
width: 250rpx;
height: 250rpx;
border-right: 1rpx solid #eee;
border-bottom: 1rpx solid #eee;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* 去掉每行最后一个格子的右边框 */
.grids .item:nth-child(3n) {
border-right: 0;
}
/* ② 格子内图片与文字 */
.grids .item image {
width: 70rpx;
height: 70rpx;
}
.grids .item text {
color: #999;
font-size: 28rpx;
margin-top: 20rpx;
}