用戶名密碼郵件等自動填充問題的解決:
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 閱讀(297)
評論(0) 編輯 收藏