diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 01a0348..2dc9ca8 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -55,90 +55,57 @@ @@ -417,21 +384,24 @@ export default { /* 手机端 - 2列布局 */ .menu-card { + aspect-ratio: 1; width: 44%; background: #fff; border-radius: 24rpx; - padding: 30rpx; + padding: 20rpx; margin: 10rpx; box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; + align-items: center; + justify-content: center; } -/* 平板/PC端 - 横版布局,超过4个换行 */ +/* 平板/PC端 */ @media (min-width: 768px) { .menu-card { - width: 22%; - margin: 10rpx; + width: 18%; + padding: 30rpx; } }