·
写在前面:
在苹果应用的开发过程中会出现数字被自动识别为电话号码的问题,影响用户体验。
为了不让随意的数字都被识别成电话,具体实现方式见如下:
只要把这个默认行为关闭就行! 方法超简单, 只要一行代码:
<meta name = "format-detection" content = "telephone=no">
最棒的是这个关闭不会影响真正电话号码的识别, 所以不管你的页面有木有这个问题都加上这行代码吧!
The tag in HTML 5
When running in a browser on a mobile phone, determines whether or not telephone numbers in the HTML content will appear as hypertext links. The user can click a link with a telephone number to initiate a phone call to that phone number.
(default on Safari in iOS)
content="telephone=yes" indicates that telephone numbers in the HTML code should appear as hypertext links that can be clicked to make a phone call.
content="telephone=no" indicates that telephone numbers in the HTML code should not appear as hypertext links.
