function IsFull() {
var fullscreenElement =
document.fullscreenEnabled
|| document.mozFullscreenElement
|| document.webkitFullscreenElement;
var fullscreenEnabled =
document.fullscreenEnabled
|| document.mozFullscreenEnabled
|| document.webkitFullscreenEnabled;
if (fullscreenElement == null)
{
return false;
} else {
return true;
}
}

 

 

window.onresize = function(){
if(!IsFull()){
$('#preview').css('display','none');

//这里面写的是按下ESC后执行的方法
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2021-11-01
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-01-07
  • 2022-01-28
相关资源
相似解决方案