Home > Web Front-end > H5 Tutorial > How to realize the one-click direct calling effect of the phone number in the web page_With examples_html5 tutorial skills

How to realize the one-click direct calling effect of the phone number in the web page_With examples_html5 tutorial skills

WBOY
Release: 2016-05-16 15:51:55
Original
1563 people have browsed it

How to realize the one-click direct calling effect from the phone number in the webpage_with example

Question:

When opening the website through a mobile phone, I hope that by clicking on the phone number, the outgoing menu will pop up.

Method:

Use the tel attribute of the hyperlink, as follows:

Note: When embedding a website into WeChat, some special Android phones may not be able to call out the menu. This is because the QQ browser embedded in WeChat may have certain settings that block it. By jumping to the page Add #mp.weixin.qq.com after the url to solve the problem, for example:

web/about.html was rewritten as web/about.html#mp.weixin.qq.com

How to achieve the one-click direct calling effect with the phone number in the above web page_The attached example is all the content shared by the editor. I hope it can give you a reference, and I hope you will support Script House more.

Source address: http://www.cnblogs.com/zhanghj405/p/5279508.html

Related labels:
source:php.cn