<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>使用js调用设备摄像头并实现拍照</title>
  <script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
  <style type="text/css">
    *{margin:0;padding:0}video{width:200px}button{width:100px;height:60px}
  </style>
</head>
<body>
  
  <div class="box">
    <video src=""></video