好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

这回的html5代码怎么就不好使了呢,菜鸟求助啊_html/css_WEB-ITnose





无标题文档






function createRetcs(context)
{

context.beginPath();
context.fillStyle="rgb(200,0,0)";
context.fillRect(10,10,100,100);
context.fillStyle="rgb(0,200,0)";
context.fillRect(20,20,100,100);
context.fillStyle="rgb(0,0,200)";
context.fillRect(30,30,100,100);
context.closePath();
}
function drawRects()
{
var canvas=document.getElementById('myCanvas');
var contex=canvas.getContext('2d');
context.save();
context.translate(130,200);
context.lineWidth=4;
context.lineJoin='round';
createRetcs(context);
context.stroke();
context.restore();
}




回复讨论(解决方案)

canvas我还没开始研究……

用火狐8.0.1测画出来了个框,查查语句。

用火狐8.0.1测画出来了个框,查查语句。
没明白才问哒

嗯 同样的问题

查看更多关于这回的html5代码怎么就不好使了呢,菜鸟求助啊_html/css_WEB-ITnose的详细内容...

  阅读:34次