问题
I'm using the three.js 3D engine. How can I add UI buttons on my WebGL canvas?
回答1:
Use CSS to absolute positioning HTML elements over <canvas>.
<canvas> is just like all other HTML elements and the same tricks work on it.
http://css-tricks.com/absolute-positioning-inside-relative-positioning/
来源:https://stackoverflow.com/questions/12343053/adding-buttons-and-controls-on-html5-canvas