填充前的图
填充后的图
解决方法
通过控制台查找原因,发现一些原因,修改后只修改了部分样式,通过度娘成功实现
修改为透明的方式
:deep(.ant-input:-internal-autofill-previewed) {
-webkit-text-fill-color: #ffffff !important;
transition: background-color 5000s ease-in-out 0s !important;
}
:deep(.ant-input:-internal-autofill-selected) {
-webkit-text-fill-color: #ffffff !important;
transition: background-color 5000s ease-in-out 0s !important;
}
修改为单一色调的方式
:deep(.ant-input:-webkit-autofill) {
box-shadow: 0 0 0px 1000px black inset !important;
}