Chrome ignores autocomplete=“off”

后端 未结 30 1961
礼貌的吻别
礼貌的吻别 2020-11-22 00:42

I\'ve created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89).

Despite both the

30条回答
  •  余生分开走
    2020-11-22 01:06

    In Chrome 48+ use this solution:

    1. Put fake fields before real fields:

    2. Hide fake fields:

      .visually-hidden {
        margin: -1px;
        padding: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip: rect(0, 0, 0, 0);
        position: absolute;
      }
      
    3. You did it!

    Also this will work for older versions.

提交回复
热议问题