chrome输入框记住账号密码后背景色改变问题
未知
2024-01-17 17:59:03
0次
/*// 修改input的默认样式*/
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-text-fill-color: #000 !important;
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
background-color:transparent;
/*background-image: none;*/
transition: background-color 50000s ease-in-out 0s; /*背景色透明 生效时长 过渡效果 启用时延迟的时间*/
}
input {
background-color:transparent;
}
#login-form .bgimg{
position: absolute;
left: 4px;
top: 11px;
background: url(/storg/login123.png) 4px no-repeat;
background-size: 20px;
background-position: 4px -38px;
display: inline-block;
width: 25px;
height: 25px;
z-index: 9999;
}
<input type="text" name="username" autocomplete="off" />
<span class="bgimg"></span>
<input type="password" name="pwd" autocomplete="off" />
<span class="bgimgs"></span>
相关内容