ant中input如果是password类型,无法修改input背景颜色

前言: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的背景颜色了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值