<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>北京冬奥会</title>
<style>
</style>
</head>
<body>
<canvas id="myCanvas" width="700" height="500" style="border:1px solid darkblue" >对不起,您的浏览器不支持画布</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.lineWidth=10;
ctx.strokeStyle="rgb(0,0,255)";
ctx.beginPath();
ctx.arc(110,200,100,0,Math.PI*2,true);
ctx.stroke();
ctx.strokeStyle="rgb(0,0,0)";
ctx.beginPath();
ctx.arc(330,200,100,0,Math.PI*2,true);
ctx.stroke();
ctx.strokeStyle="rgb(255,0,0)";
ctx.beginPath();
ctx.arc(550,200,100,0,Math.PI*2,true);
ctx.stroke();
ctx.strokeStyle="rgb(255,255,0)";
ctx.beginPath();
ctx.arc(220,320,100,0,Math.PI*2,true);
ctx.stroke();
ctx.strokeStyle="rgb(0,255,0)";
ctx.beginPath();
ctx.arc(440,320,100,0,Math.PI*2,true);
ctx.stroke();
</script>
</body>
</html>