<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">
function draw(){
var ctx = document.getElementById("myCanvas").getContext("2d");
ctx.shadowOffsetX = 3;
ctx.shadowOffsetY = 3;
ctx.shadowBlur = 2;
ctx.shadowColor = "rgba(0,0,0,0.5)";
ctx.fillStyle = "#33ccff";
ctx.fillRect(20,20,300,60);
ctx.fill();
ctx.font = "45px 黑体";
ctx.fillStyle = "white";
ctx.fillText("Html5+CSS3",30,64);
}
window.onload = function(){
draw();
}
</script>
</head>
<body>
<canvas id="myCanvas" width="400" height="200"></canvas>
</body>
</html>
11-08
11-08
11-08