From 3a8bc6a0be3bfd1bdbe5edd0a0414c88e4bfc106 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 12 May 2026 14:25:38 +0800 Subject: [PATCH] fix(Login): After entering your information in the input box, there should be no light blue background. --- frontend/src/style.less | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/style.less b/frontend/src/style.less index 9c930d4f..fe7799bb 100644 --- a/frontend/src/style.less +++ b/frontend/src/style.less @@ -428,4 +428,22 @@ strong { .ed-tree-node__content { border-radius: 4px; +} + + +.login-content { + /* 针对 Webkit 浏览器的自动填充样式重置 */ + input:-webkit-autofill, + input:-webkit-autofill:hover, + input:-webkit-autofill:focus, + input:-webkit-autofill:active { + /* 1. 使用足够大的内阴影来覆盖背景色,把 #ffffff 替换成你输入框原本的背景色 */ + -webkit-box-shadow: 0 0 0px 1000px #f5f7fa inset !important; + + /* 2. 由于常规的 color 属性也会失效,需要用这个属性修改文字颜色 */ + -webkit-text-fill-color: #333333 !important; + + /* 3. 保留光标的正常颜色 */ + caret-color: #333333; + } } \ No newline at end of file