From 1ea991e5b8549fbd8b7a135d3fae547fc72f6fa3 Mon Sep 17 00:00:00 2001 From: wanghanlin <1533525126@qq.com> Date: Wed, 2 Sep 2026 17:10:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E5=85=A8=E5=B1=80=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=20body=20margin=20=E6=B6=88=E9=99=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A4=9A=E4=BD=99=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 浏览器默认 body margin:8px 未清零,导致 .layout-container(100vh) 与登录页 min-height:100vh 超出视口出现滚动条及四周白边。在 shared.css 顶部新增全局基础重置(margin/padding 清零 + box-sizing:border-box)。 --- frontend/src/styles/shared.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/styles/shared.css b/frontend/src/styles/shared.css index e70f549..ed34d99 100644 --- a/frontend/src/styles/shared.css +++ b/frontend/src/styles/shared.css @@ -6,6 +6,13 @@ * 不再散落硬编码 hex,保证全站配色一致。 */ +/* ====== 全局基础重置 ====== */ +* { box-sizing: border-box; } +html, body, #app { + margin: 0; + padding: 0; +} + /* ====== 工具栏 ====== */ .toolbar { display: flex;