How do I make a transparent canvas in html5?

前端 未结 6 1524
执笔经年
执笔经年 2020-11-27 13:35

How can I make a canvas transparent? I need to because I want to put two canvases on top of one another.

6条回答
  •  失恋的感觉
    2020-11-27 13:51

    Just set the background of the canvas to transparent.

    #canvasID{
        background:transparent;
    }
    

提交回复
热议问题