diff --git a/src/views/system/loginmini/MiniLogin.vue b/src/views/system/loginmini/MiniLogin.vue index f3a6556..2319596 100644 --- a/src/views/system/loginmini/MiniLogin.vue +++ b/src/views/system/loginmini/MiniLogin.vue @@ -515,4 +515,22 @@ html[data-theme='dark'] { background: transparent; } } +/* Chrome/Edge/Safari */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus { + /* 重新设置背景色、文字色、边框等 */ + background-color: #f5f5f5 !important; + color: #333333 !important; + /* 取消浏览器自己的内阴影 */ + box-shadow: 0 0 0px 1000px #f5f5f5 inset !important; + /* 如果需要边框高亮,也可以一起重置 */ + // border: 1px solid #ccc !important; +} + +/* Firefox */ +input:-moz-autofill { + background-color: #f5f5f5 !important; + color: #333333 !important; +} diff --git a/src/views/system/loginmini/MiniLogin_yunwei.vue b/src/views/system/loginmini/MiniLogin_yunwei.vue index f3a6556..2319596 100644 --- a/src/views/system/loginmini/MiniLogin_yunwei.vue +++ b/src/views/system/loginmini/MiniLogin_yunwei.vue @@ -515,4 +515,22 @@ html[data-theme='dark'] { background: transparent; } } +/* Chrome/Edge/Safari */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus { + /* 重新设置背景色、文字色、边框等 */ + background-color: #f5f5f5 !important; + color: #333333 !important; + /* 取消浏览器自己的内阴影 */ + box-shadow: 0 0 0px 1000px #f5f5f5 inset !important; + /* 如果需要边框高亮,也可以一起重置 */ + // border: 1px solid #ccc !important; +} + +/* Firefox */ +input:-moz-autofill { + background-color: #f5f5f5 !important; + color: #333333 !important; +} diff --git a/src/views/system/loginmini/MiniLogin_yunying.vue b/src/views/system/loginmini/MiniLogin_yunying.vue index 8ad97fc..669dac3 100644 --- a/src/views/system/loginmini/MiniLogin_yunying.vue +++ b/src/views/system/loginmini/MiniLogin_yunying.vue @@ -515,4 +515,22 @@ html[data-theme='dark'] { background: transparent; } } +/* Chrome/Edge/Safari */ +input:-webkit-autofill, +input:-webkit-autofill:hover, +input:-webkit-autofill:focus { + /* 重新设置背景色、文字色、边框等 */ + background-color: #f5f5f5 !important; + color: #333333 !important; + /* 取消浏览器自己的内阴影 */ + box-shadow: 0 0 0px 1000px #f5f5f5 inset !important; + /* 如果需要边框高亮,也可以一起重置 */ + // border: 1px solid #ccc !important; +} + +/* Firefox */ +input:-moz-autofill { + background-color: #f5f5f5 !important; + color: #333333 !important; +}