<分区>
我正在为手机制作一个 html 链接。
这是我的:
<a href="tel:1-888-888-8888"> 1-888-888-8888</a>
手机会识别这个,还是我需要将其更改为:
<a href="tel:18888888888"> 1-888-888-8888</a>
标签 html
<分区>
我正在为手机制作一个 html 链接。
这是我的:
<a href="tel:1-888-888-8888"> 1-888-888-8888</a>
手机会识别这个,还是我需要将其更改为:
<a href="tel:18888888888"> 1-888-888-8888</a>
最佳答案
uri 中允许使用视觉分隔符(空格除外)。
来自 RFC 3966 "The tel URI for Telephone Numbers" :
5.1.1. Separators in Phone Numbers
Phone numbers MAY contain visual separators. Visual separators ('visual-separator') merely aid readability and are not used for URI comparison or placing a call ... "tel" URIs MUST NOT use spaces in visual separators ...
关于电话格式的 HTML 电话链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16242590/