HTML5页面如何在手机端浏览器调用相机、相册功能

  1. <!DOCTYPE html>  
  2. <html lang="en">  
  3. <head>  
  4.     <meta charset="UTF-8">  
  5.     <title>HTML5页面如何在手机端浏览器调用相机、相册功能</title>  
  6. </head>  
  7. <body>  
  8.   
  9. <div>  
  10.     <input type="file" accept="image/*" capture="camera">  
  11.     <input type="file" accept="video/*" capture="camcorder">  
  12.     <input type="file" accept="audio/*" capture="microphone">  
  13. </div>  
  14.   
  15. </body>  
  16. </html>  
posted @ 2017-12-15 16:23  前段—小支  阅读(1719)  评论(0编辑  收藏  举报