href =“tel:”和手机号码

时间:2013-06-20 17:09:20

标签: html href tel

如果我使用tel:我应该写国际电话代码,就像那样。

<a href="tel:+6494461709">61709</a>

到目前为止,这么好,但我无法找到有关如何以“国际”方式编写手机号码的信息,如果有的话。

5 个答案:

答案 0 :(得分:330)

在您所在的国家/地区拨打号码时,您仍需要在号码的其余部分之前拨打national trunk number。例如,在澳大利亚,人们会拨打:

   0 - trunk prefix
   2 - Area code for New South Wales
6555 - STD code for a specific telephone exchange
1234 - Telephone Exchange specific extension.

对于手机来说,这就变成了

   0 -      trunk prefix
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

现在,当我想通过国际中继线拨号时,您需要删除中继前缀并将其替换为international dialing prefix

   + -      Short hand for the country trunk number
  61 -      Country code for Australia
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

这就是为什么你经常发现拨打国际电话号码时电话号码的第一个数字,即使使用国际前缀在同一个国家/地区拨号也是如此。

根据trunk prefix for Germany删除0并为Germany's international calling code添加+49(例如)给出:

<a href="tel:+496170961709" class="Blondie">
    Call me, call me any, anytime
      <b>Call me (call me) I'll arrive</b>
        When you're ready we can share the wine!
</a>

答案 1 :(得分:40)

我知道OP询问国际国家代码,但对于北美,您可以使用以下内容:

<a href="tel:1-847-555-5555">1-847-555-5555</a>

<a href="tel:18475555555">Click Here To Call Support 1-847-555-5555</a>

这可能会对你有帮助。

答案 2 :(得分:22)

BlackBerry浏览器和iOS版Safari(iPhone / iPod / iPad)会自动检测电话号码和电子邮件地址并将其转换为链接。如果您不想使用此功能,则应使用以下元标记。

对于Safari:

<meta name="format-detection" content="telephone=no">

对于BlackBerry:

<meta http-equiv="x-rim-auto-match" content="none">

来源:mobilexweb.com

答案 3 :(得分:6)

另外,您还可以添加用于暂停或等待的标记语言,我从iPhone iOS中学到了这一点,它允许数字与分机号存储在同一行中。分号会建立一个 wait ,它将在拨打该号码时显示为下一步。这有助于简化在其分机板中拨打电话的工作流程。出现提示时,按iPhone屏幕左下方显示的按钮,iPhone会自动拨打它。

<a href="tel:+50225079227;1">Call Now</a>

暂停中输入逗号“,”,以使每个逗号都有短暂的暂停时间。时间过后,逗号后的号码将自动拨打

<a href="tel:+50225079227,1">Call Now, you will be automaticlaly transferred</a>

答案 4 :(得分:3)

它是一样的。您的国际格式已经正确,建议尽可能在所有情况下使用。

相关问题