1

我注意到升级到 Android 8 后,状态栏不再在 Chrome 上html5全屏隐藏。有没有办法隐藏这个?以前的 Android 版本并非如此。

铬: 64.0.3282.137

操作系统: Android 8.0.0,HTC 10 Build/OPR1.170623.0267

$([fullscreenButton, fullscreenSideButton]).on('click', function(){
    self.goFullScreen();
});
goFullScreen: function(){
    var self = this;
    var viewel = document.getElementById('viewer-container');
    if(viewel.requestFullscreen) {
        viewel.requestFullscreen();
    } else if (viewel.webkitRequestFullscreen) {
        viewel.webkitRequestFullscreen();
    } else if (viewel.mozRequestFullScreen) {
        viewel.mozRequestFullScreen();
    } else if (viewel.msRequestFullscreen) {
        viewel.msRequestFullscreen();
    }
},

截屏

4

0 回答 0