简体   繁体   English

从iPhone网站发起电话

[英]To initiate a phone call from iphone websites

To make a phone call via HTML on an iPhone I have create an a tag with an href formatted as: <a href='tel:555-555-5555'>555-555-5555</a >. 要在iPhone上通过HTML拨打电话,我创建了一个标签,其标签的href格式为: <a href='tel:555-555-5555'>555-555-5555</a >。

But My problem is, Its not working its opening in new tab just showing like its stuck.Even i tried <a href="tel://555-555-5555">555-555-5555</a> but non of them is working for me. 但是我的问题是,它无法像在卡住的状态那样在新选项卡中打开。即使我尝试了<a href="tel://555-555-5555">555-555-5555</a>但他们为我工作。 Is anyone face these type of problem? 有人面对这类问题吗?

Well you first attempt seem to be the correct one, as you can see in de Apple URL scheme documentation . 好吧,正如您在de Apple URL计划文档中所看到的,您的第一次尝试似乎是正确的。

There example: 有例子:

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

It might be the quotes, you use ' while normally you would use " . 可能是引号,使用'而通常使用"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM