是否可以使用< input type =" tel" />现在? [英] Is it okay to use <input type="tel"/> now?

查看:223
本文介绍了是否可以使用< input type =" tel" />现在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究手机网络应用程序,并且我有几个可以从< input type =tel/> >受益的文本字段。 iPhone将为用户调整键盘,但我担心会破坏向后兼容性。我所希望的是,支持此功能的浏览器/手机可以帮助用户,而其他浏览器将回退到标准文本字段?这是一种可接受的做法吗?它甚至可以工作吗?

I'm working on a mobile phone web app and I have several text fields that could benefit from <input type="tel"/>. iPhones will adjust the keyboard for the user, but I'm worried about breaking backwards compatibility. What I'm hoping is that browsers/phone that support this can assist the user and other browser will fall back to a standard text field? Is this an acceptable practice? Does it even work?

推荐答案

是的,任何不受支持的类型都会恢复为'type = text'格式。

Yes, any unsupported type will revert to the 'type=text' format.

我找到了一个很好的页面,列出了所有现有的输入类型。我试着从不同的浏览器看它,有点有趣。不知道它是否会帮助你。

I found a good page which lists out all the existing input types. I tried looking at it from different browsers, a bit interesting. Don't know if it will help you or not.

http://miketaylr.com/pres/html5/forms2.html

这篇关于是否可以使用&lt; input type =&quot; tel&quot; /&gt;现在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆