From cdd197bff533df3fa126935b5c6c9dae7669abb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 7 Jan 2026 23:15:10 +0800 Subject: [PATCH] =?UTF-8?q?style(App):=20=E4=BC=98=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=8A=98=E5=8F=A0=E7=BB=84=E4=BB=B6=E7=9A=84=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了多余的左右边框样式设置 - 将边框重置方式从 border: none 改为 border-style: none - 修正了 border-block 属性值,从 0px 改为 0 --- src/App.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.css b/src/App.css index 53a6f1e..e0d9b00 100644 --- a/src/App.css +++ b/src/App.css @@ -169,8 +169,6 @@ right: 0; margin-top: 0; border-radius: 8px; - border-left: none; - border-right: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); max-height: 0; overflow: hidden; @@ -179,7 +177,8 @@ visibility: visible; /* 覆盖默认的visibility: hidden */ transform: none; /* 覆盖默认的transform */ display: block; /* 覆盖默认的display: none,使用block而不是flex */ - border: none; /* 移除边框,避免横线显示 */ + /* 移除边框,避免横线显示 */ + border-style: none; } .nav-collapse-content.show { @@ -244,7 +243,7 @@ max-height: 0; overflow: hidden; transition: max-height 0.3s ease; - border-block: 0px; + border-block: 0; } .nav-collapse-content.show {