-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdemo_fontclass.html
502 lines (419 loc) · 18.9 KB
/
demo_fontclass.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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>IconFont</title>
<link rel="stylesheet" href="demo.css">
<link rel="stylesheet" href="iconfont.css">
</head>
<body>
<div class="main markdown">
<h1>IconFont 图标</h1>
<ul class="icon_lists clear">
<li>
<i class="icon cicon cicon-snmp"></i>
<div class="name">network</div>
<div class="fontclass">.cicon-snmp</div>
</li>
<li>
<i class="icon cicon cicon-user"></i>
<div class="name">user</div>
<div class="fontclass">.cicon-user</div>
</li>
<li>
<i class="icon cicon cicon-cog"></i>
<div class="name">cog</div>
<div class="fontclass">.cicon-cog</div>
</li>
<li>
<i class="icon cicon cicon-remove-sign"></i>
<div class="name">remove-sign</div>
<div class="fontclass">.cicon-remove-sign</div>
</li>
<li>
<i class="icon cicon cicon-trash"></i>
<div class="name">trash</div>
<div class="fontclass">.cicon-trash</div>
</li>
<li>
<i class="icon cicon cicon-gunicorn"></i>
<div class="name">ma</div>
<div class="fontclass">.cicon-gunicorn</div>
</li>
<li>
<i class="icon cicon cicon-tongzhi"></i>
<div class="name">通知</div>
<div class="fontclass">.cicon-tongzhi</div>
</li>
<li>
<i class="icon cicon cicon-bell"></i>
<div class="name">bell</div>
<div class="fontclass">.cicon-bell</div>
</li>
<li>
<i class="icon cicon cicon-point"></i>
<div class="name">point</div>
<div class="fontclass">.cicon-point</div>
</li>
<li>
<i class="icon cicon cicon-overview"></i>
<div class="name">overview</div>
<div class="fontclass">.cicon-overview</div>
</li>
<li>
<i class="icon cicon cicon-oneapmlogo"></i>
<div class="name">OneAPM Logo</div>
<div class="fontclass">.cicon-oneapmlogo</div>
</li>
<li>
<i class="icon cicon cicon-edit"></i>
<div class="name">edit</div>
<div class="fontclass">.cicon-edit</div>
</li>
<li>
<i class="icon cicon cicon-dashboard"></i>
<div class="name">dashboard</div>
<div class="fontclass">.cicon-dashboard</div>
</li>
<li>
<i class="icon cicon cicon-desktop"></i>
<div class="name">desktop</div>
<div class="fontclass">.cicon-desktop</div>
</li>
<li>
<i class="icon cicon cicon-pubu"></i>
<div class="name">1422447574_700248-icon-1-cloud</div>
<div class="fontclass">.cicon-pubu</div>
</li>
<li>
<i class="icon cicon cicon-python"></i>
<div class="name">python</div>
<div class="fontclass">.cicon-python</div>
</li>
<li>
<i class="icon cicon cicon-linux"></i>
<div class="name">linux</div>
<div class="fontclass">.cicon-linux</div>
</li>
<li>
<i class="icon cicon cicon-copy"></i>
<div class="name">copy</div>
<div class="fontclass">.cicon-copy</div>
</li>
<li>
<i class="icon cicon cicon-download"></i>
<div class="name">download</div>
<div class="fontclass">.cicon-download</div>
</li>
<li>
<i class="icon cicon cicon-yanjing"></i>
<div class="name">眼睛</div>
<div class="fontclass">.cicon-yanjing</div>
</li>
<li>
<i class="icon cicon cicon-server"></i>
<div class="name">server</div>
<div class="fontclass">.cicon-server</div>
</li>
<li>
<i class="icon cicon cicon-file"></i>
<div class="name">file</div>
<div class="fontclass">.cicon-file</div>
</li>
<li>
<i class="icon cicon cicon-listalt"></i>
<div class="name">list-alt</div>
<div class="fontclass">.cicon-listalt</div>
</li>
<li>
<i class="icon cicon cicon-plus"></i>
<div class="name">plus</div>
<div class="fontclass">.cicon-plus</div>
</li>
<li>
<i class="icon cicon cicon-ai"></i>
<div class="name">Ai</div>
<div class="fontclass">.cicon-ai</div>
</li>
<li>
<i class="icon cicon cicon-bi"></i>
<div class="name">Bi</div>
<div class="fontclass">.cicon-bi</div>
</li>
<li>
<i class="icon cicon cicon-mi"></i>
<div class="name">Mi</div>
<div class="fontclass">.cicon-mi</div>
</li>
<li>
<i class="icon cicon cicon-supervisord"></i>
<div class="name">S</div>
<div class="fontclass">.cicon-supervisord</div>
</li>
<li>
<i class="icon cicon cicon-question"></i>
<div class="name">question</div>
<div class="fontclass">.cicon-question</div>
</li>
<li>
<i class="icon cicon cicon-ruby"></i>
<div class="name">ruby</div>
<div class="fontclass">.cicon-ruby</div>
</li>
<li>
<i class="icon cicon cicon-play"></i>
<div class="name">play</div>
<div class="fontclass">.cicon-play</div>
</li>
<li>
<i class="icon cicon cicon-iis"></i>
<div class="name">IIS</div>
<div class="fontclass">.cicon-iis</div>
</li>
<li>
<i class="icon cicon cicon-apache"></i>
<div class="name">apache</div>
<div class="fontclass">.cicon-apache</div>
</li>
<li>
<i class="icon cicon cicon-memcached"></i>
<div class="name">memcached</div>
<div class="fontclass">.cicon-memcached</div>
</li>
<li>
<i class="icon cicon cicon-mongodb"></i>
<div class="name">mongodb</div>
<div class="fontclass">.cicon-mongodb</div>
</li>
<li>
<i class="icon cicon cicon-mysql"></i>
<div class="name">mysql</div>
<div class="fontclass">.cicon-mysql</div>
</li>
<li>
<i class="icon cicon cicon-nginx"></i>
<div class="name">ngnix</div>
<div class="fontclass">.cicon-nginx</div>
</li>
<li>
<i class="icon cicon cicon-postgresql"></i>
<div class="name">postgresql</div>
<div class="fontclass">.cicon-postgresql</div>
</li>
<li>
<i class="icon cicon cicon-redis"></i>
<div class="name">redis</div>
<div class="fontclass">.cicon-redis</div>
</li>
<li>
<i class="icon cicon cicon-tomcat"></i>
<div class="name">tomcat</div>
<div class="fontclass">.cicon-tomcat</div>
</li>
<li>
<i class="icon cicon cicon-activemq"></i>
<div class="name">activemq</div>
<div class="fontclass">.cicon-activemq</div>
</li>
<li>
<i class="icon cicon cicon-cassandra"></i>
<div class="name">cassandra</div>
<div class="fontclass">.cicon-cassandra</div>
</li>
<li>
<i class="icon cicon cicon-couchbase"></i>
<div class="name">couchbase</div>
<div class="fontclass">.cicon-couchbase</div>
</li>
<li>
<i class="icon cicon cicon-couchdb"></i>
<div class="name">counchdb</div>
<div class="fontclass">.cicon-couchdb</div>
</li>
<li>
<i class="icon cicon cicon-docker"></i>
<div class="name">docker</div>
<div class="fontclass">.cicon-docker</div>
</li>
<li>
<i class="icon cicon cicon-elasticsearch"></i>
<div class="name">elasticsearch</div>
<div class="fontclass">.cicon-elasticsearch</div>
</li>
<li>
<i class="icon cicon cicon-kafka"></i>
<div class="name">kafka</div>
<div class="fontclass">.cicon-kafka</div>
</li>
<li>
<i class="icon cicon cicon-php_fpm"></i>
<div class="name">phpfpm</div>
<div class="fontclass">.cicon-php_fpm</div>
</li>
<li>
<i class="icon cicon cicon-rabbitmq"></i>
<div class="name">rabbitmq</div>
<div class="fontclass">.cicon-rabbitmq</div>
</li>
<li>
<i class="icon cicon cicon-ct"></i>
<div class="name">ct</div>
<div class="fontclass">.cicon-ct</div>
</li>
<li>
<i class="icon cicon cicon-zookeeper"></i>
<div class="name">zookeeper</div>
<div class="fontclass">.cicon-zookeeper</div>
</li>
<li>
<i class="icon cicon cicon-mesos"></i>
<div class="name">mesos</div>
<div class="fontclass">.cicon-mesos</div>
</li>
<li>
<i class="icon cicon cicon-solr"></i>
<div class="name">solr</div>
<div class="fontclass">.cicon-solr</div>
</li>
<li>
<i class="icon cicon cicon-loading"></i>
<div class="name">loading</div>
<div class="fontclass">.cicon-loading</div>
</li>
<li>
<i class="icon cicon cicon-php"></i>
<div class="name">php</div>
<div class="fontclass">.cicon-php</div>
</li>
<li>
<i class="icon cicon cicon-disable"></i>
<div class="name">disable</div>
<div class="fontclass">.cicon-disable</div>
</li>
<li>
<i class="icon cicon cicon-windows"></i>
<div class="name">windows</div>
<div class="fontclass">.cicon-windows</div>
</li>
<li>
<i class="icon cicon cicon-jianliao"></i>
<div class="name">jianliao</div>
<div class="fontclass">.cicon-jianliao</div>
</li>
<li>
<i class="icon cicon cicon-nagios"></i>
<div class="name">N</div>
<div class="fontclass">.cicon-nagios</div>
</li>
<li>
<i class="icon cicon cicon-singlePage"></i>
<div class="name">web_asset</div>
<div class="fontclass">.cicon-singlePage</div>
</li>
<li>
<i class="icon cicon cicon-gearman"></i>
<div class="name">gear</div>
<div class="fontclass">.cicon-gearman</div>
</li>
<li>
<i class="icon cicon cicon-bearychat"></i>
<div class="name">bearychat</div>
<div class="fontclass">.cicon-bearychat</div>
</li>
<li>
<i class="icon cicon cicon-cacti"></i>
<div class="name">仙人掌_cactus3</div>
<div class="fontclass">.cicon-cacti</div>
</li>
<li>
<i class="icon cicon cicon-onealert"></i>
<div class="name">onealert</div>
<div class="fontclass">.cicon-onealert</div>
</li>
<li>
<i class="icon cicon cicon-pause"></i>
<div class="name">pause_down</div>
<div class="fontclass">.cicon-pause</div>
</li>
<li>
<i class="icon cicon cicon-sqlserver"></i>
<div class="name">microsoft sql server</div>
<div class="fontclass">.cicon-sqlserver</div>
</li>
<li>
<i class="icon cicon cicon-hdfs"></i>
<div class="name">Hadoop</div>
<div class="fontclass">.cicon-hdfs</div>
</li>
<li>
<i class="icon cicon cicon-java"></i>
<div class="name">java</div>
<div class="fontclass">.cicon-java</div>
</li>
<li>
<i class="icon cicon cicon-right"></i>
<div class="name">ci右</div>
<div class="fontclass">.cicon-right</div>
</li>
<li>
<i class="icon cicon cicon-left"></i>
<div class="name">ci左</div>
<div class="fontclass">.cicon-left</div>
</li>
<li>
<i class="icon cicon cicon-ci"></i>
<div class="name">Ci logo 2</div>
<div class="fontclass">.cicon-ci</div>
</li>
<li>
<i class="icon cicon cicon-ci-large"></i>
<div class="name">ci logo 3</div>
<div class="fontclass">.cicon-ci-large</div>
</li>
<li>
<i class="icon cicon cicon-openstack"></i>
<div class="name">openstack</div>
<div class="fontclass">.cicon-openstack</div>
</li>
<li>
<i class="icon cicon cicon-nodejs"></i>
<div class="name">nodejs-icon</div>
<div class="fontclass">.cicon-nodejs</div>
</li>
<li>
<i class="icon cicon cicon-haproxy"></i>
<div class="name">428. Network</div>
<div class="fontclass">.cicon-haproxy</div>
</li>
<li>
<i class="icon cicon cicon-aliyun"></i>
<div class="name">阿里云</div>
<div class="fontclass">.cicon-aliyun</div>
</li>
<li>
<i class="icon cicon cicon-exit"></i>
<div class="name">sign out</div>
<div class="fontclass">.cicon-exit</div>
</li>
</ul>
<h2 id="font-class-">font-class引用</h2>
<hr>
<p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
<p>与unicode使用方式相比,具有如下特点:</p>
<ul>
<li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
<li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
<li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
<li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
</ul>
<p>使用步骤如下:</p>
<h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
<pre><code class="lang-js hljs javascript"><span class="hljs-comment"><link rel="stylesheet" type="text/css" href="./iconfont.css"></span></code></pre>
<h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
<pre><code class="lang-css hljs"><<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">cicon</span> <span class="hljs-selector-tag">cicon-xxx</span>"></<span class="hljs-selector-tag">i</span>></code></pre>
<blockquote>
<p>"cicon"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
</blockquote>
</div>
</body>
</html>