forked from WangJia-mm/JavaScript201708
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2-animation.html
More file actions
36 lines (32 loc) · 973 Bytes
/
2-animation.html
File metadata and controls
36 lines (32 loc) · 973 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>珠峰培训</title>
<link rel="stylesheet" href="css/reset.min.css">
<style>
html, body {
width: 100%;
height: 100%;
overflow: hidden;
}
.box {
position: absolute;
top: 20px;
left: 20px;
width: 100px;
height: 100px;
/*CSS3中设置盒子圆角的属性:如果当前的盒子是个正方形,设置50%,盒子会变为一个圆*/
border-radius: 50%;
/*CSS3中背景颜色渐变:linear-gradient按照指定方向的线性渐变 radial-gradient从正中心开始的放射性渐变*/
background: red;
background: -webkit-radial-gradient(orange, red);
}
</style>
</head>
<body>
<div class="box" id="box"></div>
<script src="js/utils201708.min.js"></script>
<script src="js/2-6.js"></script>
</body>
</html>