123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <!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 iconfont icon-msnui-poweroff"></i>
- <div class="name">关机</div>
- <div class="fontclass">.icon-msnui-poweroff</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-close"></i>
- <div class="name">close</div>
- <div class="fontclass">.icon-close</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-shanchu"></i>
- <div class="name">删除</div>
- <div class="fontclass">.icon-shanchu</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-quanping"></i>
- <div class="name">全屏</div>
- <div class="fontclass">.icon-quanping</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-shanchu1"></i>
- <div class="name">删除</div>
- <div class="fontclass">.icon-shanchu1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben"></i>
- <div class="name">未标题-1_画板 1 副本 6</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben1"></i>
- <div class="name">未标题-1_画板 1 副本 7</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben2"></i>
- <div class="name">未标题-1_画板 1 副本 11</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben2</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben3"></i>
- <div class="name">未标题-1_画板 1 副本 10</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben3</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben4"></i>
- <div class="name">未标题-1_画板 1 副本 9</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben4</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_huabanfuben5"></i>
- <div class="name">未标题-1_画板 1 副本 8</div>
- <div class="fontclass">.icon-weibiaoti-_huabanfuben5</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_Time-active"></i>
- <div class="name">未标题-1_Time-active</div>
- <div class="fontclass">.icon-weibiaoti-_Time-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_b-active"></i>
- <div class="name">未标题-1_b-active</div>
- <div class="fontclass">.icon-weibiaoti-_b-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_A-active"></i>
- <div class="name">未标题-1_A-active</div>
- <div class="fontclass">.icon-weibiaoti-_A-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_Add-active"></i>
- <div class="name">未标题-1_Add-active</div>
- <div class="fontclass">.icon-weibiaoti-_Add-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_center-active"></i>
- <div class="name">未标题-1_center-active</div>
- <div class="fontclass">.icon-weibiaoti-_center-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_life-active"></i>
- <div class="name">未标题-1_life-active</div>
- <div class="fontclass">.icon-weibiaoti-_life-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_youxu-active"></i>
- <div class="name">未标题-1_youxu-active</div>
- <div class="fontclass">.icon-weibiaoti-_youxu-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_right-active"></i>
- <div class="name">未标题-1_right-active</div>
- <div class="fontclass">.icon-weibiaoti-_right-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_U-active"></i>
- <div class="name">未标题-1_U-active</div>
- <div class="fontclass">.icon-weibiaoti-_U-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_wuxu-active"></i>
- <div class="name">未标题-1_wuxu-active</div>
- <div class="fontclass">.icon-weibiaoti-_wuxu-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_Pic-active"></i>
- <div class="name">未标题-1_Pic-active</div>
- <div class="fontclass">.icon-weibiaoti-_Pic-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-weibiaoti-_I-active"></i>
- <div class="name">未标题-1_I-active</div>
- <div class="fontclass">.icon-weibiaoti-_I-active</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-hebing"></i>
- <div class="name">合并 (1)</div>
- <div class="fontclass">.icon-hebing</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-caijian"></i>
- <div class="name">裁剪</div>
- <div class="fontclass">.icon-caijian</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-jianqie"></i>
- <div class="name">剪切</div>
- <div class="fontclass">.icon-jianqie</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-xunhuan"></i>
- <div class="name">循环2</div>
- <div class="fontclass">.icon-xunhuan</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">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"></<span class="hljs-selector-tag">i</span>></code></pre>
- <blockquote>
- <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
- </blockquote>
- </div>
- </body>
- </html>
|