diff --git a/packDetail1/pages/device/index.vue b/packDetail1/pages/device/index.vue index 4769a1a..212fc87 100644 --- a/packDetail1/pages/device/index.vue +++ b/packDetail1/pages/device/index.vue @@ -11,7 +11,7 @@ - + @@ -234,6 +234,7 @@ font-size: 28rpx; padding: 20rpx 0; color: #8b95ea; + margin-top: 20rpx; } .top_box { @@ -253,6 +254,21 @@ flex-wrap: wrap; } + /* 当只有一个子元素时的样式优化 */ + .bot_box.single-item { + justify-content: center; + } + + .bot_box.single-item .bot_left { + width: 100%; + height: 370rpx; + } + + .bot_box.single-item .bot_left .botleft_top { + width: 100%; + height: 300rpx; + } + .bot_left { width: 48%; border: 4rpx solid #f0f0f0;