From 69d721055d5577610cc0f421e96145074d81d238 Mon Sep 17 00:00:00 2001 From: CNWei Date: Mon, 2 Nov 2026 21:47:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E8=A1=A5=E9=BD=90=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=8C=89=E9=92=AE=20reset=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20Select=20=E9=80=89=E9=A1=B9=E7=81=B0=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 组件库的 Select / Segmented / Tabs / Menu 都把按钮底色交给宿主 reset;之前 index.css 只设了 cursor,Chrome 默认的 ButtonFace 灰底和按钮边框就露了出来,下拉面板看起来像一块块灰条。 --- frontend/src/index.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/index.css b/frontend/src/index.css index 2e1958f..08e2cc9 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -71,7 +71,13 @@ textarea { font: inherit; } +/* 组件库的「无底色按钮」依赖宿主这份 reset(Select 选项、Segmented、Tabs、Menu + 都只声明选中态底色)。少了它,浏览器默认的 ButtonFace 灰底和按钮边框会露出来, + 下拉选项会变成一块块灰条。 */ button { + border: none; + background: none; + color: inherit; cursor: pointer; }