有物理街道地址的链接格式吗?

问题描述 投票:0回答:2

移动设备已经开始很好地进行链接检测。他们现在检测链接、电子邮件地址、电话号码和实际街道地址。

问题是链接检测并不是100%正确。因此,更明确地说,对于其中大多数,我们可以使用链接。

<a href="tel:+1-408-555-5555">1-408-555-5555</a>

物理街道地址是否有等效的链接格式?

html mobile hyperlink
2个回答

0
投票
您可以在链接中使用映射:语法。

https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html

const full_address = '123 Main street Fort Lauderdale, FL 33321'; <a href={`maps:?q=${full_address}`} target="_blank" > <address>{full_address}</address> </a>
我在 MacOS 上使用 Chrome 和 iOS 上的 Edge/Chrome 对此进行了测试,它有效。

© www.soinside.com 2019 - 2024. All rights reserved.