0
<canvas width="1050" height="1200" id="canvas1">Sorry, no canvas available</canvas>//
<table id="qwerty">
<tr>
<td>Apple</td>
<td>Mango</td>
</tr>
<tr>
<td>Orange</td>
<td>Grape</td>
</tr>
</table>
<script>
var canvas = document.getElementById("canvas1")
var ctx = canvas.getContext("2d");
ctx.drawImage(img1,0,0);
</script>
我有一個HTML表格,並在其上繪製的圖像在畫布上沿畫布添加一個HTML表格。現在我需要在表添加到同一個畫布,請幫我這個如何與其他圖像
看到這個 - http://stackoverflow.com/questions/13903952/can-i-draw-a-table-in-canvas-element –
@RubenKarapetyan謝謝,但我不清楚這個xmlns ='http: //www.w3.org/2000/svg在SVG標籤 – Chandu
不容易外的開箱和可靠的路。我會推薦這:http://html2canvas.hertzen.com/在@RubenKarapetyan鏈接中提到的黑客會玷污除了Edge和火狐瀏覽器都在畫布上,因此不會允許你以編程方式保存它(因爲我想這是你是什麼之後) – Kaiido