IE下畫線
if (canvas.getContext){
// 使用 getContext 使用畫布進行繪圖
var ctx = canvas.getContext('2d');
ctx.fillRect(25,25,100,100);
ctx.clearRect(45,45,60,60);
ctx.50,50,50,500,50,50,50,50,50,50,50,50,50,50,50,50,50,50,500,50,50,500,50,500,50,500,500,500,500,500,500,500,5050,500,500,5050,500,500,5050,500,5050,5050,500,5050,500,500 ) ;
ctx.moveTo(100,100);
ctx.lineTo(200,250);
ctx.lineTo(50,250);
} else {
alert('您需要Safari 或Firefox 1.5 才能觀看此示範。');
}
"
}
"
/css">