使用canvas第一步 先设置一个canvas容器 然后设置宽高
<canvas id="canvas1" width="80px" height="80px" style="margin-left: -10px;margin-top: -10px;">
</canvas>
接着
var canvas1 = document.getElementById("canvas1");
if(canvas1.getContext){
var ctx = canvas1.getContext("2d");
ctx.strokeStyle = "white";
var circle = {
x:40,
y:40,
r:40,
};
function start(){
ctx.beginPath();
ctx.arc(circle.x, circle.y, circle.r, getRads(-80), getRads(80));
ctx.stroke();