Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iOS 用の HTML5 Web アプリでタグに「type=number」を使用しています。私が望む動作は、ユーザーが編集するテキストフィールドを選択したときに、iOS の英数字キーボードの数字側を表示することです。これは現在行われています。
問題は、小数点を含む数値がフィールドに入力されると、テキストフィールドの背景が iOS デバイスでピンク色になることです。これを止めるか、回避する方法はありますか?
novalidateに属性を追加してみてくださいform。
novalidate
form
<form novalidate> <input type="number" /> </form>