未处理时:
处理后:
#username:-webkit-autofill{
-webkit-animation: user-fix 1s infinite;
}
@-webkit-keyframes user-fix {
from {
background: #eae7e7 url(img/8bcLQqF.png) no-repeat 10px 10px;
}
to {
background: #eae7e7 url(img/8bcLQqF.png) no-repeat 10px 10px;
}
}
#password:-webkit-autofill{
-webkit-animation: pwd-fix 1s infinite;
}
@-webkit-keyframes pwd-fix {
from {
background: #eae7e7 url(img/8bcLQqF.png) no-repeat 10px -53px;
}
to {
background: #eae7e7 url(img/8bcLQqF.png) no-repeat 10px -53px;
}
}
如若是仅仅去掉背景色:
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px white inset !important;
}