【问题标题】:How (or should I) markup phone numbers in a website?如何(或应该)在网站中标记电话号码?
【发布时间】:2011-10-12 14:37:18
【问题描述】:

我正在移动优化一个带有媒体查询的网站。在没有任何额外标记的情况下,电话号码似乎可以在 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”>1234</a>

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

那么,最好的解决方案或权衡电话号码的标记是什么?谢谢

【问题讨论】:

标签: mobile microformats


【解决方案1】:

第一个例子 (tel:) 是一个 RFC 标准:http://www.ietf.org/rfc/rfc3966.txt,据我所知,没有“tel”属性,所以我更喜欢 tel-URI。

【讨论】:

    猜你喜欢
    • 2010-11-12
    • 1970-01-01
    • 1970-01-01
    • 2015-07-21
    • 1970-01-01
    • 1970-01-01
    • 2019-02-20
    • 1970-01-01
    • 2014-07-29
    相关资源
    最近更新 更多