Three.js Full Screen Issue

后端 未结 4 620
野的像风
野的像风 2021-01-31 17:28

I\'ve read through the Three.js API, read through the questions here on StackOverflow, I\'ve debugged the code using firebug and chrome\'s debugger, I\'ve stripped out everythin

4条回答
  •  青春惊慌失措
    2021-01-31 17:57

    This fixed problem for me. it always going to keep canvas at full screen.

    canvas {
        width: 100vw;
        height: 100vh;
        display: block;
      }
    

提交回复
热议问题