HTML 阻止浏览器自动填充input密码框

方法1:把input的 type="password" 改成 type="text"  并在后面加上 οnfοcus="this.type='password'" 

<input type="text" placeholder="密码" onfocus="this.type='password'"/>

 

posted @ 2024-02-23 15:34  东风-5C(全球可飞)  阅读(771)  评论(0)    收藏  举报