Safari - Webkit contacts autofill button icon change color on empty

萝らか妹 提交于 2020-01-05 05:00:13

问题


I have a dark form on my website and I want to change the color of the contacts autofill button when the input field is empty. How can this be achieved?


回答1:


input:not(input:-webkit-autofill)::-webkit-contacts-auto-fill-button {
    background-color: #fff;
}


来源:https://stackoverflow.com/questions/43517932/safari-webkit-contacts-autofill-button-icon-change-color-on-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!