如何在 Mobile Safari 中禁用电话号码链接? [英] How to disable phone number linking in Mobile Safari?

查看:27
本文介绍了如何在 Mobile Safari 中禁用电话号码链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone 上的 Safari 会自动为出现在电话号码中的数字串创建链接.我正在编写一个包含 IP 地址的网页,而 Safari 正在将其转换为电话号码链接.是否可以为整个页面或页面上的某个元素禁用此行为?

Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page?

推荐答案

根据 Safari HTML 参考:

<meta name="format-detection" content="telephone=no">

如果您禁用此功能但仍需要电话链接,您仍然可以使用tel"URI 方案.

If you disable this but still want telephone links, you can still use the "tel" URI scheme.

这里是 Apple 开发者库中的相关页面.

这篇关于如何在 Mobile Safari 中禁用电话号码链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆