Tel URI href=“tel:”和虚荣号码?
Tel URI href=“tel:” and vanity numbers?
我试图在 href="tel:" link 中添加一个虚荣号码(例如电话:“+1800FLOWERS”),但现在我实际上不确定这是否适用于所有设备,或者如果我只写出数字会更准确吗?我的意思是它看起来更像虚荣心。
提前致谢
tel:
方案最初在 RFC2806 中定义,它只定义了对数字和一些附加字符的支持(参见第 2.2 节)。
RFC3966,它废弃了 RFC2806,明确指出不支持虚荣数字。来自第 5.1.2 节:
5.1.2. Alphabetic Characters Corresponding to Digits
In some countries, it is common to write phone numbers with
alphabetic characters corresponding to certain numbers on the
telephone keypad. The URI format does not support this notation, as
the mapping from alphabetic characters to digits is not completely
uniform internationally, although there are standards [E.161][T1.703]
addressing this issue.
因此您应该只在 href 属性中使用常规数字。您仍然可以在文本本身中使用个性编号,例如:
<a href="tel:+1-800-356-9377">+1800FLOWERS</a>
我试图在 href="tel:" link 中添加一个虚荣号码(例如电话:“+1800FLOWERS”),但现在我实际上不确定这是否适用于所有设备,或者如果我只写出数字会更准确吗?我的意思是它看起来更像虚荣心。
提前致谢
tel:
方案最初在 RFC2806 中定义,它只定义了对数字和一些附加字符的支持(参见第 2.2 节)。
RFC3966,它废弃了 RFC2806,明确指出不支持虚荣数字。来自第 5.1.2 节:
5.1.2. Alphabetic Characters Corresponding to Digits
In some countries, it is common to write phone numbers with
alphabetic characters corresponding to certain numbers on the
telephone keypad. The URI format does not support this notation, as
the mapping from alphabetic characters to digits is not completely
uniform internationally, although there are standards [E.161][T1.703] addressing this issue.
因此您应该只在 href 属性中使用常规数字。您仍然可以在文本本身中使用个性编号,例如:
<a href="tel:+1-800-356-9377">+1800FLOWERS</a>