input 自动填充颜色改变或透明

本秂侑毒 提交于 2019-11-30 15:05:31
设置黄色背景变成白色背景:input:-webkit-autofill { box-shadow: 0 0 0px 1000px white inset !important;}  
input:-webkit-autofill:focus { box-shadow: 0 0 0px 1000px white 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;}亲测有效
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!