html - Change autocomplete background color on google chrome in css -


yes, there's lot of questions this, none of them seems work me.

i need change autocomplete background color on google chrome:

enter image description here

enter image description here

i tried of this:

solution 1

solution 2

solution 3

this css:

input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px black inset; }

and cshtml:

 <div class="row m-t-50">         <div class="input-field col s12">             <input id="last_name" type="text" class="validate" asp-for="username">             <label for="last_name">usuário</label>         </div>      </div>

any ideas?

first of all, code should working , appropriate. in mind, there 2 possible reasons of seeing not changes in css class:

1- 1 scenario happened me number of times when chrome not apply defined css styles page , solution i've found problem restart computer.

2- if using css library such bootstrap or mdl, ensure not have predefined identical definition. have never checked out. however, using chrome developer tools, may figure out:

enter image description here

enter image description here


Comments