How can I make elements inside the canvas responsive?

前端 未结 0 400
耶瑟儿~
耶瑟儿~ 2021-02-01 20:26

I am trying to build a game using HTML5 canvas.

The canvas takes the full width and height of the browser.

canvas.height = innerHeight;
canvas.width = inne         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题