Original address:
http://www.blesswe.com/portal.php?mod=view&aid=428
We are in the mobile phone to browse the Web is hoping that users can see the mobile phone number click to directly call or send text messages, below we CSS3 have a special title can let you implement this method. Recently have a friend to do a mobile page directly to call the function, I checked the relevant information, each of the statements have been tried, only use a tag in the method is the most convenient and compatible with the best. Make a phone call on a mobile page
The code is as follows |
Copy Code |
<a href= "tel:18511178920" > |
Call the Warden </a> send a text message on the mobile page
The code is as follows |
Copy Code |
<a href= "sms:18511178920" > |
The Watcher sends SMS consultation </a> This method is best, compatible with mobile Safari,chrome,uc,qq browser, Dolphin Browser etc. Other methods are not recommended, mainly compatibility is too poor, also listed bar, for reference 1. Mobile Web page automatic detection phone number
The code is as follows |
Copy Code |
<meta name= "format-detection" content= "Telephone=yes" > |
2. Make a call using the Wtai protocol
The code is as follows |
Copy Code |
<a href= "wtai://wp//mc;18511178920" > Call catcher </a> <a href= "wtai://wp/ap;18511178920;" > Save the Watcher to the phone book </a> |
|
Web Mobile website Mobile phone Click to send text messages