[英]React.js make a phone call with a tag is not working
<NavLink exact to="/" className="nav-logo">
<div className="nav-linker">
<FaPhoneAlt size="19" className="nav-linker " />
<a href="tel://+6199942413">call us!</a>
</div>
<div className="nav-linker">
<FaMapMarkerAlt size="19" className="nav-linker " />
<a href="https://goo.gl/maps/rc55DywgCJo26W28A">
60 Bellevue Ave Gaythorne QLD 4115
</a>
</div>
i've simply tried a tag it is supposed to make a phone call when it's pressed does anyone know why it is not working?我只是尝试了一个标签,它应该在按下时拨打电话有人知道它为什么不工作吗?
<a href="tel:+6199942413">call us!</a>
should work. <a href="tel:+6199942413">call us!</a>
应该可以。 Don't need the //
.不需要//
。
Can also put <FaPhoneAlt size="19" className="nav-linker " />
inside the <a>
to make:也可以把<FaPhoneAlt size="19" className="nav-linker " />
放在<a>
里面来做:
<a href="tel:+6199942413">
<FaPhoneAlt size="19" className="nav-linker"/>
</a>
if you ever want to remove the text.如果您想删除文本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.