[英]Website toggling full screen mode in Chrome, after ajax load
我仍然在网页上遇到一个Chrome问题。 有分页,通过ajax调用加载内容: https : //elody.cz/nase-nevesty
当我单击分页中的2nd,3d,..选项卡时。 正在执行加载,然后加载到全屏模式。
您也可以观看以下视频: https : //www.loom.com/share/768557e080f1471393aa0377d3fec024
在Mac和Windows上(在Chrome中)都存在此问题。
拜托,有人知道如何解决这个问题吗?
谢谢! 菲利普
在ba_gallery.js内部,有以下几行:
var fullscreen = true;
将此值设置为false可能会解决您的问题,我想值得一试
ajax完成后,您可以验证其是否处于全屏模式,如果是,则将其设置为false。 document.fullscreenEnabled:测试ID浏览器支持全屏document.documentElement.requestFullscreen(); 将您的页面转到全屏
document.addEventListener("fullscreenchange", function (event) {
if (document.fullscreenElement) {
// fullscreen is activated
} else {
// fullscreen is cancelled
}
});
测试是否全屏显示
document.exitFullscreen(); 正在出去
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.