【发布时间】:2013-08-05 13:16:15
【问题描述】:
是否可以让图片可点击(在电子邮件中)以拨打电话号码?
我试过了
<a href=\"tel:1234567\"><img src=\"image1.png\" alt=\"test\" /></a>
和
<img src=\"cid:image1\" alt=\"test\" usemap=\"#testImage\" />
<map name=\"testImage\"><area shape=\"rect\" coords=\"0,0,480,200\"
href=\"tel:1234567 \" alt=\"testimage\" /></map></td></tr>
上面的代码来自后面的 C# 代码。 他们不工作......
【问题讨论】:
-
你想分享一些代码吗?
-
你使用什么格式的链接? (
<a href="tel:+0123456789"><img ... /></a>,或?) -
是的,使用这个:on touchevent on imageview NSString *phoneNumber = [@"tel://" stringByAppendingString:mymobileNO.titleLabel.text]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
-
嗨@Rob,没错。不在 HTML 中。在 C# 代码中,message.Body = "...."