-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
375 lines (375 loc) · 23.1 KB
/
demo.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>cjlalala's Demo</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<meta name="description" content="cjlalala个人网站,记录学习过程,展示前端作品。">
<meta name="keywords" content="web前端开发,前端组件,百度IFE任务">
<meta name="author" content="cjlalala" />
<link href="css/common.css" rel="stylesheet">
<link href="css/demo.css" rel="stylesheet">
</head>
<body>
<!--导航栏-->
<nav id="nav">
<div class="logo">
<a href="#"><img src="img/indexImg/logo2.png"></a>
</div>
<ul class="nav_list">
<li><a href="index.html">主页</a></div></li>
<li><a href="#phase1">阶段一</a></div></li>
<li><a href="#phase2">阶段二</a></div></li>
<li><a href="#phase3">阶段三</a></div></li>
<li><a href="#phase4">阶段四</a></div></li>
</ul>
</nav>
<!--项目部分-->
<div id="demo">
<div class='demo_cont'>
<div class='demo_list_1 list' id='phase1'>
<h3>第一阶段</h3>
<ul>
<li><div class='li_cont'>
<h4>任务1:零基础HTML编码</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=1'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task01/task01.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task01'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务2:零基础HTML及CSS编码(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=2'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task02/task02.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task02'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务3:三栏式布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=3'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task03/task03.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task03'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务4:定位和居中问题</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=4'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task04/task04.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task04'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务5:零基础HTML及CSS编码(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=5'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task05/task05.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task05'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务6:通过HTML及CSS模拟报纸排版</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=16'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task06/task06.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task06'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务7:实现常见的技术产品官网的页面架构及样式布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=7'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task07/task07.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task07'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务8:响应式网格(栅格化)布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=8'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task08/task08.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task08'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务9:使用HTML/CSS实现一个复杂页面</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=9'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task09/task09.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task09'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务10:Flexbox布局练习</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=10'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task10/task10.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task10'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务11:移动Web页面布局实践</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=11'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task11/task11.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task11'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务12:学习CSS3的新特性</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=12'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase01/task12/task12.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase01/task12'>代码</a>
</div></li>
</div>
<div class='demo_list_2 list' id='phase2'>
<h3>第二阶段</h3>
<ul>
<li><div class='li_cont'>
<h4>任务13:零基础Javascript编码(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=13'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task13/task13.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task13'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务14:零基础Javascript编码(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=14'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task14/task14.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task14'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务15:零基础Javascript编码(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=15'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task15/task15.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task15'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务16:零基础Javascript编码(4)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=16'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task16/task16.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task16'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务17:零基础Javascript编码(5)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=17'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task17/task17.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task17'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务18:基础Javascript练习(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=18'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task18/task18.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task18'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务19:基础Javascript练习(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=19'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task19/task19.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task19'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务20:基础Javascript练习(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=20'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task20/task20.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task20'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务21:基础Javascript练习(4)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=21'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task21/task21.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task21'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务22:Javascript和树(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=22'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task22/task22.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task22'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务23:Javascript和树(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=23'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task23/task23.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task23'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务24:Javascript和树(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=24'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task24/task24.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task24'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务25:Javascript和树(4)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=25'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task25/task25.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task25'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务26:行星和飞船(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=26'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task26/task26.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task26'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务27:行星和飞船(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=27'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task27/task27.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task27'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务28:行星和飞船(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=28'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task28/task28.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task28'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务29:表单(1)单个表单项的检验</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=29'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task29/task29.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task29'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务30:表单(2)多个表单项的动态检验</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=30'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task30/task30.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task30'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务31:表单(3)联动</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=31'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task31/task31.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task31'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务32:表单(4)实现表单自动生成工厂</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=32'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task32/task32.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task32'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务33:听指令的小方块(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=33'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task33/task33.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task33'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务34:听指令的小方块(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=34'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task34/task34.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task34'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务35:听指令的小方块(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=35'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task35/task35.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task35'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务36:听指令的小方块(4)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=36'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase02/task36/task36.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase02/task36'>代码</a>
</div></li>
</div>
<div class='demo_list_3 list' id='phase3'>
<h3>第三阶段</h3>
<ul>
<li><div class='li_cont'>
<h4>任务37:UI组件之浮出层</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=37'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task37/task37.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task37'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务38:UI组件之排序表格</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=38'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task38/task38.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task38'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务39:UI组件之冻结行列表格</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=39'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task39/task39.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task39'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务40:UI组件之日历组件(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=40'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task40/task40.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task40'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务41:UI组件之日历组件(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=41'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task41/task41.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task41'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务42:UI组件之日历组件(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=42'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task42/task42.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task42'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务43:多功能相册之拼图布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=43'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task43/task43.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task43'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务44:多功能相册之瀑布布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=44'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task44/task44.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task44'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务45:多功能相册之木桶布局</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=45'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task45/task45.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task45'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务46:王牌特工 准备工作(1)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=46'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task46/task46.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task46'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务47:王牌特工 准备工作(2)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=47'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task47/task47.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task47'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务48:王牌特工 准备工作(3)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=48'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task48/task48.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task48'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务49:王牌特工 准备工作(4)</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=49'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase03/task49/task49.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase03/task49'>代码</a>
</div></li>
</div>
<div class='demo_list_4 list' id='phase4'>
<h3>第四阶段</h3>
<ul>
<li><div class='li_cont'>
<h4>任务50:微型调查问卷平台</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=50'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase04/task50/index.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase04/task50'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务51:多功能相册</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=51'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase04/task51/task51.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase04/task51'>代码</a>
</div></li>
<li><div class='li_cont'>
<h4>任务52:王牌特工</h4>
<a href='http://ife.baidu.com/2016/task/detail?taskId=52'>查看题目</a>
<a href='https://rawgit.com/cjlalala/2016-IFE/master/phase04/task52/task52.html'>Demo</a>
<a href='https://github.com/cjlalala/2016-IFE/tree/master/phase04/task52'>代码</a>
</div></li>
</div>
</div>
</div>
<div id="top">↑</div>
<script>
window.onscroll=function(){
var nav=document.getElementById('nav'),
top=document.getElementById('top');
var imgHeight=document.body.clientHeight||document.documentElement.clientHeight;
var target_top=document.body.scrollTop||document.documentElement.scrollTop;
target_top >= 50? nav.className = "fixed":nav.className = "";
target_top>=100?top.style.display='block':top.style.display='none';
top.onclick=function(){
window.scrollTo(0,0);
}
}
</script>
</body>
</html>