roe*_*nis 3 html mobile google-chrome mobile-safari ios
我在 iOS 版移动 Chrome 中打开电话号码链接时遇到问题。如果您在手机上打开测试页面 ( http://roethig.it/sandbox/phone-links.html ),它在 safari 上一切正常,手机会询问您是否要拨打该特定号码。
如果您使用适用于 iOS 的移动版 Chrome 尝试它,它会多次弹出。有没有办法避免这种情况?
这是我使用的标记:
<a href='tel:123456789' title='Free Call 123456789' class='tel'>Free Call 123 456 789</a>
Run Code Online (Sandbox Code Playgroud)
在 iPhone 5 上的 iOS 6.0.2 上测试
非常感谢!
破译谷歌搜索结果上的代码,以下似乎可以解决这个问题(目前):
<a href="javascript:void(0)" onclick="window.location='tel:123456789'"
title="Free Call 123456789" class="tel">Free Call 123 456 789</a>
Run Code Online (Sandbox Code Playgroud)
(iPhone 5, iOS 6.0.2)
| 归档时间: |
|
| 查看次数: |
3488 次 |
| 最近记录: |