html - href ="tel:"和手机号码

标签 html href tel

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

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

到目前为止,一切都很好,但我找不到有关如何以“国际”方式编写手机号码的信息,如果有的话。

最佳答案

调用您所在国家/地区的号码时,您仍需要调用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>

关于html - href ="tel:"和手机号码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17219688/

相关文章:

html - 何时以及何时不使用角色 ="button"

javascript - 获取本地主机名并使用图像 Javascript 创建链接

jquery - 无法使用javascript替换旧图像的图像

html - 如何在 html 代码的链接标记中链接任何 Web 服务器上可用的 CSS 文件

http - 如何在 anchor 中指定协议(protocol)并仍然使用相对路径?

jquery - 具有响应式设计的 iPhone 设备上的链接和自动对焦问题

html - 点击调用电话分机智能手机

html - “切换”电话 : link on and off. .. 最好仅使用 CSS

javascript - HTML/CSS 根据文本长度改变 anchor

Java - 如果我知道域,如何将相对 URL 字符串更改为绝对 URL?