SOURCE

console 命令行工具 X clear

                    
>
console
var tel=document.getElementById('vid');
function playPause(){
  if (tel.paused){
    tel.play();
  }
  else{
    tel.pause();
  }
}
function makeBig(){
  tel.width=500;
  tel.heighth=150;
}
function makeTiny(){
  tel.width=400;
}
<video id='vid' width='300' heigth='300' controls>
  <source src='file://c:/Users/Jamy/Downloads/IDM down/Video/Uralesbian.mp4' type='video/mp4'>
</video><br><br>

<div>
  <audio id='aud' width='300' heigth='100' controls>
   <source src='hello.mp3' type='audio/mp3'>
  </audio><br>
  <button onclick='playPause()'>播放/停止</button>
  <button onclick='makeBig()'>放大</button>
  <button onclick='makeTiny()'>缩小</button>
</div><br><br>