canvas时钟
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Canvas时钟</title>
<Script type="text/javaScrpt">
</script>
<style type="text/css">
div{
text-align:center;
margin-top:150px;
}
#clock{
border:1px solid #CCC;
}
</style>
</head>
<body>
<div>
<canvas id="clock" height="200px" width="200px"></canvas>
</div>
<script type="text/javaScrpt" src="JavaScript/clock.js"></script>
</body>
</html>
不考虑js的代码,这样写对不对。我在浏览器上只显示个框