From c1059820de81fddc77dcbfb0516f69344538c0f4 Mon Sep 17 00:00:00 2001 From: toom1996 <23cm.cn@gmail.com> Date: Sun, 25 Oct 2026 00:42:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(layout):=20=E9=A1=B5=E8=84=9A=E9=BB=91?= =?UTF-8?q?=E5=BA=95=E9=93=BA=E6=BB=A1=E8=A7=86=E5=8F=A3=EF=BC=8C=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=BF=9D=E7=95=99=E5=8E=9F=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit body 上的 px/py 会向内缩进子元素,页脚因此四周露白边。 用等量负边距让黑底贴到视口边缘,再在内层把缩进补回来 (移动 20+20=40 → px-10;桌面 50+40=90 → md:px-[90px]), 文字位置与改动前完全一致。 --- src/layouts/Layout.astro | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 1ea43fe..7a16ae8 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -273,7 +273,10 @@ const headers = { -