前言:ant中input如果是存在password类型,无法修改input背景颜色,一直都是#e8f0fe这个颜色,太坑了
研究了好久是internal-autofill-selected影响了背景颜色
加上
/deep/ .ant-input:-internal-autofill-selected {
transition: background-color 5000s ease-in-out 0s !important;
-webkit-text-fill-color: #FFF !important;
}
/deep/ .ant-input:-internal-autofill-selected {
transition: background-color 5000s ease-in-out 0s !important;
-webkit-text-fill-color: #FFF !important;
}
就可以修改input的背景颜色了