From 89f2c1e2fbfcfc3acf77f4c16a841304679135d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 9 Sep 2025 22:08:49 +0800 Subject: [PATCH] =?UTF-8?q?style(index):=20=E8=B0=83=E6=95=B4=E6=9A=97?= =?UTF-8?q?=E9=BB=91=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E6=96=87=E5=AD=97?= =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 index.html 文件中,添加了 prefers-color-scheme 媒体查询 - 当用户选择暗黑模式时,不仅设置背景颜色为黑色,还设置了文字颜色为白色 --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index dffce7c..02ca7a6 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@ @media (prefers-color-scheme: dark) { body { background-color: #000; + color: #fff; } } #app {