之前解决chrome浏览器自动填充都是在input后添加一个
<input type="text" style="height:0; opacity:0; width:0; padding:0; margin:0; border:0;" >
但是今天失效了。不管放在前面,还是后面都不行。
后来解决是放在input后面,且需要加上name
<td><input type="text"name="email" style="height:0; opacity:0; width:0; padding:0; margin:0; border:0;"/><input type="text" name="email" autocomplete="off" ></td>
21/3/24
用layui写的,用户名和密码自动填充了。
然后发现在密码的input后面加上 就好了。
<input type="password" autocomplete="new-password" style="display: none" />