[英]iPhone: numeric keyboard for credit card input
目前我正在使用<input type="text">
如果我使用<input type="number">
,問題是在Chrome中,輸入字段開始如下所示,帶有向上和向下箭頭:
有更好的解決方案嗎?
只需將其添加到您的css文件中即可刪除箭頭。
form input[type='number']::-webkit-outer-spin-button,
form input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
資料來源: http : //thanewoidan.com/articles/14/hide-default-input-type-number-up-down-arrows-in-chrome
希望對你有所幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.