如何清除 Google Chrome 自動填入密碼

Richard Liao
Aug 23, 2019

網站登入並記住密碼後,瀏覽器會啟動自動填入密碼,或是進入註冊頁面時,裡面的密碼欄位會自動填入密碼

於是在網路上找了兩種方法,卻還是會出現 drop-down

https://developer.mozilla.org/zh-TW/docs/Web/HTML/Element/input

(x)方法一 在 form 裡面添加 autocomplete=off 表示關閉這個 form 的自動填入功能

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

(x) 方法二 在 <input type="password"/> 中加入 autocomplete=off

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

解決方法: 設定 css

css 中加入-webkit-text-security: "disc"

--

--

Richard Liao

🧑🏻‍💻 frontend developer, Angular, React, React Native, Flutter, 🇹🇼 Taiwanese, 💁🏻‍♂️ www.linkedin.com/in/richard-liao-34b92510b