<!DOCTYPE html> <html> <script type="text/javascript"> window.onload = function(){ var canvas = document.getElementById('canvas'); var context = canvas.getContext('2d'); if(context){ context.lineWidth = 5; context.strokeStyle = "#005588"; context.arc(300,300,200,0,1.5*Math.PI); context.stroke(); }else{ alert('当前浏览器不支持Canvas,请更换浏览器后再试'); } } </script> <body> <canvas id="canvas" width="800" height="800" style="border:1px solid #aaa;display:block;margin:0 auto;"> 当前浏览器不支持Canvas,请更换浏览器后再试 </canvas> </body> </html>
跌落尘层的王者
2014-10-19
0 回答
举报
0/150
提交
取消