当前位置:Gxlcms > html代码 > html5开发手机打电话发短信功能代码实例分享

html5开发手机打电话发短信功能代码实例分享

时间:2021-07-01 10:21:17 帮助过:36人阅读

在很多的手机网站上,有打电话和发短信的功能,对于这些功能是如何实现的呢。其实不难,今天我们就用html5来实现他们。简单的让你大开眼界。
HTML5 很容易写,但创建网页时,您经常需要重复做同样的任务,如创建表单。在这...有 HTML5 启动模板、空白图片、打电话和发短信、自动完成等等,帮助你提高开发效率的同时,还带来了更炫的功能。好了,我们今天就来做一做看看效果吧!!
看代码:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>伪专家html5开发法短信功能</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
  8. <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
  9. <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
  10. </head>
  11. <body>
  12. <p data-role="page">
  13. <p data-role="header" data-position="fixed">
  14. <h1>伪专家html5开发打电话、发短信功能</h1>
  15. </p>
  16. <p data-role="content">
  17. <p><b>如有疑问:请加qq群135430763,共同学习!!!</b></p>
  18. <p><b>如有疑问:请加qq群135430763,共同学习!!!</b></p>
  19. <p><a href="sms:10086?body=短信内容" data-role="button" data-theme="a">测试发短信</a></p>
  20. <p><a href="tel:10086" data-role="button" data-theme="a">测试打电话</a></p>
  21. </p>
  22. <p data-role="footer" data-position="fixed">
  23. <h1>伪专家html5开发打电话、发短信功能</h1>
  24. </p>
  25. </p>
  26. </body>
  27. </html>

手机截图:

以上就是html5开发手机打电话发短信功能代码实例分享的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行