1. 自动填充样式修改
input: -webkit - autofill,
input: -webkit - autofill: hover,
input: -webkit - autofill: focus,
input: -webkit - autofill: active {
-webkit - transition - delay: 99999s;
-webkit - transition: color 99999s ease - out, background - color 99999s ease - out;
}
 
  1. 阻止自动填充
' <!--[if IE lte 9]>',
' <input type="password" class="form-control" autocomplete="off" name="password" placeholder="由6-16位由字母、数字、特殊字符组成" value="<%=password%>">',
' <![endif]-->',
' <input type="password" style="display:none"><input type="password" class="form-control" autocomplete="off" name="password" placeholder="由6-16位由字母、数字、特殊字符组成" value="<%=password%>">',
' </div>',
// 火狐
<input type="password" style="display:none" />
// chrome
<input type="password" class="form-control" name="password" required="required" autocomplete="new-password" data-input="clear" placeholder="请输入" runat="server" maxlength="20"
/>
<input type="password" style="display:none" />
 

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2022-01-04
  • 2021-11-11
  • 2021-12-08
  • 2021-04-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-12-03
  • 2021-12-03
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案