フロントエンドは、ユーザーのログイン時に Chrome がユーザーにパスワードを保存するよう求めることを禁止する問題を解決します。

<input type="password" autocomplete="off" />

ブラウザーがユーザーにパスワードの保存を求めるプロンプトを表示する理由は、type="password" の場合、ブラウザーがプロンプト ボックスをポップアップ表示するため、タイプをパスワードに設定できないためです。

タイプを text に設定し、このタグの style 属性を -webkit-text-security:disc; に設定すると、入力テキストは次のようになります。)

<input type="text" style="-webkit-text-security:disc;" />


 

Supongo que te gusta

Origin blog.csdn.net/spring_007_999/article/details/130782067
Recomendado
Clasificación