解决Chrome浏览器缓存对input样式影响
Others 2018-06-01 05:34:52 2018-06-01 05:34:52 2514 次浏览1.可以在不需要默认填写的input框中设置 autocomplete="new-password"
2.修改readonly属性
<input type="password" readonly onfocus="this.removeAttribute('readonly');"/>
3. 通常我们会在form表单上加入autocomplete="off" 或者 在输入框中加入autocomplete="off"
<form method="post" action="" name="login" autocomplete="off"> </form> //或者 <input id="name" type="text" name="name" maxlength="20" autocomplete="off">
Links: 148