HTML-video全屏

 

var oV = document.getElementById('v1');

aInput[4].onclick=function()
{
  launchFullScreen(oV);
}

function launchFullScreen(oV) {
  if(oV.requestFullScreen) {
    oV.requestFullScreen();
  } else if(oV.mozRequestFullScreen) {
    oV.mozRequestFullScreen();
  } else if(oV.webkitRequestFullScreen) {
    oV.webkitRequestFullScreen();
  }
}

posted @ 2017-12-06 21:39  三庙  阅读(376)  评论(0编辑  收藏  举报