简体   繁体   中英

Safari - Webkit contacts autofill button icon change color on empty

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?

形式的例子

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM