:deep() {
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 0px transparent inset !important;
}
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
-webkit-text-fill-color: #FFFFFF !important;
transition: background-color 5000s ease-in-out 0s !important;
}
input:-internal-autofill-selected {
transition: background-color 5000s ease-in-out 0s !important;
background-color: transparent !important;
}
}
修改浏览器自动填充账号密码输入框样式
最新推荐文章于 2024-07-10 10:31:13 发布
本文介绍了如何使用CSS针对Webkit和InternalAutocomplete输入框进行自定义,包括`-webkit-box-shadow`的透明内阴影处理,以及`-webkit-text-fill-color`和`-internal-autofill-selected`时的背景色和过渡效果。
摘要由CSDN通过智能技术生成