简体   繁体   中英

WebGL to background

I have a javascript for WebGL and I implemented in a website. But it renders on top of the html elements like logos and texts. Is there a script to send to background?

Put your html elements after the canvas element. Also use absolute positioning on them. Make sure the z-index of the canvas is smaller than other elements.

This simple html,css question doesn't relate to webGL i guess.

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM