From a1c89ddb87aec264dfe77019f1ba8bc46536ce38 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 18 Mar 2026 19:54:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E5=9C=A8=E9=A1=B6=E9=83=A8=20(position:fixed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .nav-shadow 加 position:fixed + z-index:9999 - body 加 padding-top:72px 防止内容被遮挡 --- common/common.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/common.css b/common/common.css index 0e00b2d..b6495bd 100644 --- a/common/common.css +++ b/common/common.css @@ -1,3 +1,8 @@ +/* 固定导航栏占位 */ +body { + padding-top: 72px; +} + .section-content { padding: 80px 20px; max-width: 1440px; @@ -66,7 +71,11 @@ } .nav-shadow { + position: fixed; top: 0; + left: 0; + width: 100%; + z-index: 9999; /* 深色毛玻璃 Header,与下拉菜单统一风格 */ background: rgba(10, 12, 22, 0.92); backdrop-filter: blur(16px);