<canvas> 标签定义图形,比如图表和其他图像。
例子:<canvas id="myCanvas"></canvas> <script type="text/javascript"> var canvas=document.getElementById('myCanvas'); var ctx=canvas.getContext('2d'); ctx.fillStyle='#FF0000'; ctx.fillRect(0,0,80,100); </script>
<canvas id="myCanvas"></canvas>