<canvas id="myCanvas"width="250"height="300"style="border:1px solid #d3d3d3;">您的浏览器不支持HTML5canvas 标签。</canvas>varc=document.getElementById("myCanvas");varctx=c.getContext("2d"); 1.充填颜色以及充填 context.fillStyle=color|gradient|pattern; context.fillRect(x,y,width,height)...