Procházet zdrojové kódy

自动填充账户密码样式重叠问题

lichunyang před 1 měsícem
rodič
revize
b8e3957bad
1 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. 14 0
      src/views/login/index.vue

+ 14 - 0
src/views/login/index.vue

@@ -296,4 +296,18 @@ const goToRegister = () => {
   font-size: 13px;
 }
 
+:deep(.el-input__wrapper) {
+  // 覆盖浏览器自动填充的背景色
+  input:-webkit-autofill,
+  input:-webkit-autofill:hover, 
+  input:-webkit-autofill:focus, 
+  input:-webkit-autofill:active {
+    -webkit-box-shadow: 0 0 0 1000px white inset !important;
+    transition: background-color 5000s ease-in-out 0s;
+  }
+  input:-webkit-autofill {
+    -webkit-text-fill-color: #333 !important;
+  }
+}
+
 </style>