-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHW2.html
More file actions
37 lines (31 loc) · 779 Bytes
/
HW2.html
File metadata and controls
37 lines (31 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
<title>clock</title>
<style>
body {
/*设置body的CSS属性*/
background: #dddddd;
}
#canvas {
/*设置canvas元素的CSS属性*/
padding: 10px;
border: thin inset #eeeeee;
margin: 10px;
background-color: white;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate3d(-50%,-50%,0);
transform: translate3d(-50%,-50%,0);
cursor:none;
}
</style>
</head>
<body>
<!--添加canvas-->
<canvas id='canvas' width='700' height='700'>
<p>Canvas not supported</p>
</canvas>
<script src='HW2.js'></script>
</body>
</html>