开发者

How do I get Palm's WebOS browser to default to numeric input?

开发者 https://www.devze.com 2023-01-16 10:51 出处:网络
The following CSS开发者_如何学Go worked fine in my Windows mobile phone, but my Pre won\'t default to numeric inputs.

The following CSS开发者_如何学Go worked fine in my Windows mobile phone, but my Pre won't default to numeric inputs.

input.numeric {
 -wap-input-format:"*n";
}

How do I get the Pre (and presumably other newer mobile browsers?) to default to numeric inputs?


Just a guess, but the new number value for the type attribute introduced in HTML5 does work on the Mobile Safari:

<input type="number" min="0" max="10" step="2" value="6" />

Reference: http://diveintohtml5.ep.io/forms.html#type-number

0

精彩评论

暂无评论...
验证码 换一张
取 消