4

我在移动端优化了一个带有媒体查询的网站。在没有任何额外标记的情况下,电话号码似乎可以在 iphone 和 android 上被识别并成为“可点击”,但我的 windows 手机模拟器只能识别其中一个号码的 2nd 1/2。

此方法不适用于opera mobile:

<a href="tel:1234">1234</a>

http://developer.apple.com/library/safari/#codinghowtos/Mobile/UserExperience/_index.html

此方法使链接在桌面浏览器中可点击,即使浏览器不知道如何处理数字:

<a href=”#” tel=”1234”&gt;1234</a>

http://www.wpromote.com/blog/google/optimizing-your-web-site-for-mobile-3-easy-tips/

那么围绕电话号码进行标记的最佳解决方案或权衡是什么?谢谢

4

1 回答 1

1

The first example (tel:) is an RFC standard: http://www.ietf.org/rfc/rfc3966.txt and, as far as I know, there is no "tel" attribute, so i would prefer the tel-URI.

于 2012-10-09T15:29:11.830 回答