本文介绍了FullScreenChange事件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我尝试绑定FullScreenChange事件,但它不起作用。也许我做错了什么?I try bind FullScreenChange event, but it not work. Maybe i did something wrong?$(document).bind('webkitfullscreenchange mozfullscreenchange fullscreenchange',function(){if(document.fullScreen){ console.log('Go to Full Screen mode'); }else{ console.log('Exit Full Screen mode'); }}); 推荐答案您可能需要使用供应商特定的前缀 document.fullScreen property You probably need to use the vendor specific prefix for the document.fullScreen propertyvar isFullScreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;此处提供更多信息: https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode 这篇关于FullScreenChange事件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-17 07:25