修复样式问题
This commit is contained in:
parent
c20ff75cd8
commit
fd3323d980
@ -191,6 +191,9 @@ const clickMenu = (menu) => {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 定义项目尺寸变量
|
||||||
|
$item-size: 100rpx;
|
||||||
|
|
||||||
.thumb-box {
|
.thumb-box {
|
||||||
width: 33.333333%;
|
width: 33.333333%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -198,10 +201,20 @@ const clickMenu = (menu) => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
}
|
padding: 10rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
.item-menu-image {
|
|
||||||
width: 120rpx;
|
.item-menu-image {
|
||||||
height: 120rpx;
|
width: $item-size;
|
||||||
|
height: $item-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-menu-name {
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: $u-main-color;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -278,6 +278,9 @@ const clickMenu = (menu) => {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 定义项目尺寸变量
|
||||||
|
$item-size: 100rpx;
|
||||||
|
|
||||||
.thumb-box {
|
.thumb-box {
|
||||||
width: 33.333333%;
|
width: 33.333333%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -285,6 +288,22 @@ const clickMenu = (menu) => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
|
padding: 10rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
// 使图片容器的宽高都基于item-size变量
|
||||||
|
.item-menu-image {
|
||||||
|
width: $item-size;
|
||||||
|
height: $item-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-menu-name {
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: $u-main-color;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-menu-image {
|
.item-menu-image {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user