簡體   English   中英

關於輸入類型=“數字”,在手機中打開數字鍵盤,但如何打開輸入類型的數字鍵盤=“密碼”

[英]About input type=“number” open number pad in mobile but how open numpad for input type=“password”

我嘗試在移動瀏覽器中打開<input type="password" />的數字鍵盤,但我無法執行此操作

當我在HTML頁面中設置<input type="number" /> ,移動瀏覽器會在查看者單擊該字段時打開該字段的數字鍵盤
我如何強制移動瀏覽器打開輸入類型為<input type="password" />數字鍵盤

Webkit瀏覽器的解決方案(將數字類型輸入的文本顯示為光盤)

 #numberPassword { -webkit-text-security: disc; } 
 <input type="number" id="numberPassword" /> 

 #numberPassword { -webkit-text-security: disc; } 
 <input type="number" id="numberPassword" /> 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM