소스 검색

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

lichunyang 1 개월 전
부모
커밋
b8e3957bad
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  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>