如果我使用tel:
,我应该像这样写国际电话代码。
<a href="tel:+6494461709">61709</a>
到目前为止,这么好,但我找不到关于如何以“国际”方式写手机号码的信息,如果有的话。
在您所在国家境内拨打号码时,仍需先拨全国中继线号码,然后再拨该号码的其余部分。 例如,在澳大利亚,人们可以拨打:
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
现在,当我要通过国际中继拨号时,您需要删除中继前缀,并用国际拨号前缀替换它
+ - Short hand for the country trunk number
61 - Country code for Australia
4 - Area code for a mobile telephone
1234 5678 - Mobile telephone number
这就是为什么你经常会发现在国际拨号时,一个电话号码的第一个数字会掉下来,即使是在同一个国家内使用国际前缀拨号时也是如此。
因此,根据德国的中继前缀,删除0
,并添加+49
,用于德国的国际呼叫代码(例如),给出:
null
<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>
我知道OP询问的是国际国家代码,但对于北美,您可以使用以下代码:
null
<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>
黑莓浏览器和iOS版Safari(iPhone/iPod/iPad)会自动检测电话号码和电子邮件地址,并将其转换为链接。 如果你不想要这个特性,你应该使用下面的meta标记。
对于Safari:
<meta name="format-detection" content="telephone=no">
对于黑莓:
<meta http-equiv="x-rim-auto-match" content="none">
来源:mobilexweb.com