From f10e9eab613852c3abb6cdc665275d979bc69deb Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 29 Apr 2024 11:19:34 +0800 Subject: [PATCH] =?UTF-8?q?[fix=2083980]=20=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85=E6=A0=B7=E5=BC=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Login.vue | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 3af553e..0b649c3 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -389,6 +389,18 @@ export default { font-weight: 400; font-size: 14px; color: @text-color; + + // 处理自动填充的样式 + &:-webkit-autofill, + &:-webkit-autofill:hover, + &:-webkit-autofill:focus, + &:-webkit-autofill:active { + -webkit-transition-delay: 999999s; + -webkit-transition: color 999999s ease-out, background-color 999999s ease-out; + font-family: Alibaba PuHuiTi, Alibaba PuHuiTi, sans-serif; + font-weight: 400; + font-size: 14px; + } } // label @@ -481,7 +493,7 @@ export default { border: none !important; box-shadow: none !important; background: none !important; - border-bottom: 0.01rem solid rgba(0,148,255,0.4) !important; + border-bottom: 0.01rem solid rgba(0, 148, 255, 0.4) !important; border-radius: 0 !important; height: 0.48rem; padding-left: 0.36rem; @@ -489,7 +501,20 @@ export default { font-weight: 400; font-size: 0.16rem; line-height: 0.24rem; + + // 处理自动填充的样式 + &:-webkit-autofill, + &:-webkit-autofill:hover, + &:-webkit-autofill:focus, + &:-webkit-autofill:active { + -webkit-transition-delay: 999999s; + -webkit-transition: color 999999s ease-out, background-color 999999s ease-out; + font-family: PingFang SC, PingFang SC, sans-serif; + font-weight: 400; + font-size: 0.16rem; + } } + .login-btn { .ant-btn { height: 0.48rem;