From 6674ed858425741a80c8e334820d0a1149f44035 Mon Sep 17 00:00:00 2001 From: "978184212@qq.com" <978184212@qq.com> Date: Wed, 3 Jun 2026 10:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packDetail1/pages/device/index.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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;