posts - 8,  comments - 0,  trackbacks - 0
用户名密码邮件等自动填充问题的解决:
1. form 加入:autocomplete="off"属性
2. 每个password中 加入 type="text" onfocus="this.type='password'" autocomplete="off" 属性
3. password最上面加入一个不显示的password:
<input type="password" name="password1000" style="display:none;width:0;height:0;">
4. 如果email或者username中 也自动填充 ,需要在下面加入一个不显示的text,并且必须加上name属性值 如:
<input type="text" name="email1000" style="display:none;width:0;height:0;" />

<form autocomplete="off">

<input type="text" autocomplete="off" class="post" style="WIDTH: 200px" maxlength="255" size="25" name="email" value="${u.email?default("")?html}" />
<input type="text" name="email1000" style="display:none;width:0;height:0;" />

<input type="password" name="password1000" style="display:none;width:0;height:0;">
<input type="text" onfocus="this.type='password'" autocomplete="off" />
</form>

posted on 2016-08-26 14:20 liufx 阅读(278) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2016年8月>
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜