Background/element goes black when entering Fullscreen with HTML5

前端 未结 7 1604
旧时难觅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:35

    the main solution didn't work to me :-( I found another solution, but yes, in the css:

    :-webkit-full-screen, :fullscreen, :-ms-fullscreen, :-moz-full-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; 
    background: none;}
    

    I understand this is for the position of my elements, but I no sure. Hope help to somebody. Bye and thanks.

提交回复
热议问题