相关疑难解决方法(0)

将许多canvas元素保存为图像

我有3层画布 - 1是矩阵,2和3是图形,如何在一个图像中保存它们?

<div style="position: relative;">
 <canvas id="matix" width="100" height="100" 
   style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas>
 <canvas id="layer1" width="100" height="100" 
   style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas>
 <canvas id="layer2" width="100" height="100" 
   style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas>
</div>
Run Code Online (Sandbox Code Playgroud)

javascript html5 canvas

14
推荐指数
1
解决办法
8936
查看次数

标签 统计

canvas ×1

html5 ×1

javascript ×1