什么输入字段类型强制数字键盘移动键盘在聚焦时出现? [英] what input field type forces the number pad mobile keyboard to come up when focused?
问题描述
我尝试了< input type =number/>
,但是在Opera上输出了一个奇怪的输入框和一个上下处理程序。我期望的是一个常规的文本字段,一旦你注意到它,就会提示数字键盘而不是字母。这甚至有可能吗?
p.s。我没有试图验证。这将是一个不错的用户体验,就这些。 解决方案
type =number是HTML5和不支持HTML5 。
对于通话链接,您可以使用type =tel或
< A href =wtai:// wp / mc; 600112233>特殊A< / A&
。
您应该查看 CSS WAP扩展(56页)也>。
编辑10/2015:
如果不是所有的智能手机都支持HTML5和CSS3,那么 type =number
是最好的方法。
I tried the <input type="number" />
but on Opera that outputs a strange input box coupled with an "up and down" handler. What I expected was a regular text field that once you focus on it prompts the number keyboard instead of the alphabets. Is that even possible?
p.s. I'm not trying to validate. It would be a nice user experience, that's all.
type="number" is HTML5 and many phones do not support HTML5.
For call link you can use type="tel" or
<A href="wtai://wp/mc;600112233">Special A</A>
.
You should look at CSS WAP extensions (page 56) too.
EDIT 10/2015:
Most if not ALL smart phones support HTML5 and CSS3, so type="number"
is the best way.
这篇关于什么输入字段类型强制数字键盘移动键盘在聚焦时出现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!