-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (109 loc) · 3.31 KB
/
index.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Demo Document</title>
</head>
<body>
<div>
<h3>CSS相关</h3>
<h4>弹跳动画</h4>
<div class="bouncing-loader">
<div class="loader"></div>
<div class="loader"></div>
<div class="loader"></div>
</div>
<h4>等宽高比</h4>
<div class="constant-width-to-height-ratio"></div>
</div>
<div id="demo">
<h1>Hello ES6</h1>
<div class="demo-child"></div>
</div>
<!-- 下面的DOM是为demo准备的DOM -->
<!-- target和currentTarget的区别 -->
<div id="outer" style="background:#099">
click outer
<p id="inner" style="background:#9C0">click inner</p>
<br>
</div>
<!-- 事件委托 -->
<div id="box">
<input type="button" id="add" value="添加" />
<input type="button" id="remove" value="删除" />
<input type="button" id="move" value="移动" />
<input type="button" id="select" value="选择" />
</div>
<!-- 为创建的DOM添加事件委托 -->
<input type="button" name="" id="btn" value="添加" />
<ul id="ul1">
<li>111</li>
<li>222</li>
<li>333</li>
<li>444</li>
</ul>
<!-- 闭包例子 -->
<a href="#">点我测试闭包</a>
<a href="#">点我测试闭包</a>
<a href="#">点我测试闭包</a>
<a href="#">点我测试闭包</a>
<div id="object">
<input type="text" name="" id="model">
<p id="view"></p>
</div>
<!-- 闭包按钮 -->
<button id="size12">闭包12字号</button>
<button id="size14">闭包14字号</button>
<button id="size16">闭包16字号</button>
<!-- String 容器 -->
<div id="flex">
</div>
<!-- 测试flex -->
<div id="dad">
<div class="son"></div>
<div class="son"></div>
<div class="son"></div>
</div>
<div class="align-items dad-baseline">
<div class="son1"></div>
<div class="son2"></div>
<div class="son3"></div>
</div>
<div class="align-items dad-stretch">
<div class="son1"></div>
<div class="son2"></div>
<div class="son3"></div>
</div>
<section>
<div class="left"></div>
<div class="middle"></div>
<div class="right"></div>
</section>
<div id="eventLazy">
我是惰性加载
</div>
<!-- 关于尺寸 -->
<div class="size-blog-box">
</div>
<h1>Grid</h1>
<div class="grid-wrapper">
<div class="one item">One</div>
<div class="two item">Two</div>
<div class="three item">Three</div>
<div class="four item">Four</div>
<div class="five item">Five</div>
<div class="six item">Six</div>
</div>
<div class="grid-area">
<div class="one item logo">Logo</div>
<div class="two item header">header1</div>
<!-- <div class="three item header">header2</div> -->
<div class="four item sidebar">sidebar</div>
<div class="five item content">content</div>
</div>
</body>
<!-- 开发服务器上的地址 -->
<script src="./temp/bundle.js"></script>
</html>