Home >Web Front-end >HTML Tutorial >HTML5 canvas issue_html/css_WEB-ITnose
Two new canvases are created. Each canvas has a picture. How to put one canvas on top of another canvas? The effect is that one picture floats on top of the other picture.
It should be possible to set the coordinates
Reference
http://www.w3school.com.cn /html5/html_5_canvas.asp
http://www.cnblogs.com/myssh/archive/2011/11/24/2261901.html
This can’t be solved
Are you Want to set the canvas background above to be transparent? Try it to see if it meets your needs.
Just use one canvas, why do you need two?
Isn’t it possible to use float and margin?
Just use one canvas, why do you need two?
If you put two pictures on one canvas, the larger one will cover the smaller one, without the effect of floating on top. It’s almost the same as the QQ space photo album