An html5 canvas element in the background of my page?

前端 未结 4 1794
忘了有多久
忘了有多久 2020-12-07 14:07

Is it possible to have a full screen canvas element in the background of a webpage and \"normal\" markup elements like a table in front of it?

like the following sni

4条回答
  •  没有蜡笔的小新
    2020-12-07 14:18

    You could try setting a CSS style on the canvas where it has a position: fixed (or absolute as appropriate), and then any content that follows it (as opposed to container content as you've given in your example) should sit on top of it.

提交回复
热议问题