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.
次の CSS は、私の Windows 携帯電話では正常に機能しましたが、私の Pre はデフォルトで数値入力になりません。
input.numeric { -wap-input-format:"*n"; }
Pre (およびおそらく他の新しいモバイル ブラウザー) を数値入力にデフォルト設定するにはどうすればよいですか?
推測ですが、 HTML5 で導入されnumberた属性の新しい値typeは Mobile Safari でも機能します。
number
type
<input type="number" min="0" max="10" step="2" value="6" />
参考:http ://diveintohtml5.ep.io/forms.html#type-number