Background/element goes black when entering Fullscreen with HTML5

前端 未结 7 1590
旧时难觅i
旧时难觅i 2020-12-29 22:51

I\'m using the following script to make my web app go fullscreen...

function enterFullscreen(){
    var element = document.getElementById(\'container\');
            


        
7条回答
  •  悲&欢浪女
    2020-12-29 23:18

    None of the other answers is working for me (Chrome 70 or FF 63)

    Adding this to the CSS file does work

    ::backdrop
    {
        background-color: white;
    }
    

提交回复
热议问题