使用autocomplete="off"属性,在ie浏览器下可以禁止弹出是否记录密码的对话框。 例:<input type="password" autocomplete="off" /> 只验证了ie,没有验证其他浏览器。