var c= document.createElement("canvas"); var ctx=c.getContext("2d"); ctx.fillStyle = 'rgba(255, 255, 255, 0)'; ctx.fillRect(0, 0, 10,50); ctx.fillStyle = 'rgba(0,0,0)'; ctx.font="30px Arial"; ctx.fillText("Hello World",10,50);
画布背景透明canvas
最新推荐文章于 2025-03-01 11:49:24 发布