Parcourir la source

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

lichunyang il y a 1 mois
Parent
commit
b8e3957bad
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  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>