Home  >  Q&A  >  body text

css - input输入框记录清除

各位大神,我的密码输入框,只要获取到焦点后就会把以前浏览器的密码输入记录显示出来。
我设置autocomplete="off"也没有办法禁用,怎么解决这个问题啊?

<input class="form-control" autocomplete="off" required ng-model="vm.password.oldPlainPassword" type="password" ng-blur="vm.findPad(vm.password.oldPlainPassword)"/>

PHPzPHPz2742 days ago893

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 12:06:48

    Digression: This is for the browser to automatically fill in the form through the previous cache. Clear the browsing data in the browser settings or check a few options and those will disappear

    It’s a bit inappropriate for the password of the questioner to be automatically filled in. Set it up

    type="password"

    For others, please refer to http://segmentfault.com/q/1010000002508241

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 12:06:48

    This happens only when you click on remember password when logging in, not by typing in the record. .
    Google Chrome Clear Remembered Password http://zhidao.baidu.com/link?url=VU4FRBFwGtq8eNQEHxJuqKfJlYs3j-qsnDkbD35V0B7Tp4afqr4rqouBl-T3HZ9a_7-BeGESJvMyc9GOyaYgH_8aKNeD2KkxvaCCCap5o2G

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 12:06:48

    No type="password" ?

    reply
    0
  • Cancelreply