123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <!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-add"></i>
- <div class="name">add</div>
- <div class="fontclass">.icon-add</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-gongdan"></i>
- <div class="name">gongdan2</div>
- <div class="fontclass">.icon-gongdan</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-gongdan1"></i>
- <div class="name">gongdan</div>
- <div class="fontclass">.icon-gongdan1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-home"></i>
- <div class="name">home</div>
- <div class="fontclass">.icon-home</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-more"></i>
- <div class="name">more</div>
- <div class="fontclass">.icon-more</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-message"></i>
- <div class="name">message</div>
- <div class="fontclass">.icon-message</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-peo"></i>
- <div class="name">peo2</div>
- <div class="fontclass">.icon-peo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-people"></i>
- <div class="name">people</div>
- <div class="fontclass">.icon-people</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-peo1"></i>
- <div class="name">peo3</div>
- <div class="fontclass">.icon-peo1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-search"></i>
- <div class="name">search</div>
- <div class="fontclass">.icon-search</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-sort"></i>
- <div class="name">sort1</div>
- <div class="fontclass">.icon-sort</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-start"></i>
- <div class="name">start</div>
- <div class="fontclass">.icon-start</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-start1"></i>
- <div class="name">start 2</div>
- <div class="fontclass">.icon-start1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-anquancanshu"></i>
- <div class="name">安全参数</div>
- <div class="fontclass">.icon-anquancanshu</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-dangqianbaojing"></i>
- <div class="name">当前报警</div>
- <div class="fontclass">.icon-dangqianbaojing</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-huanjing"></i>
- <div class="name">环境</div>
- <div class="fontclass">.icon-huanjing</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-huanjinglogo"></i>
- <div class="name">环境logo</div>
- <div class="fontclass">.icon-huanjinglogo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-huiyuanmanyidu"></i>
- <div class="name">会员满意度</div>
- <div class="fontclass">.icon-huiyuanmanyidu</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-jiancedian"></i>
- <div class="name">监测点</div>
- <div class="fontclass">.icon-jiancedian</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-lengzhanlogo"></i>
- <div class="name">冷站logo</div>
- <div class="fontclass">.icon-lengzhanlogo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-nengyuanlogo"></i>
- <div class="name">能源logo</div>
- <div class="fontclass">.icon-nengyuanlogo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-pingfen"></i>
- <div class="name">评分</div>
- <div class="fontclass">.icon-pingfen</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-peidianlogo"></i>
- <div class="name">配电logo</div>
- <div class="fontclass">.icon-peidianlogo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-qushi"></i>
- <div class="name">趋势</div>
- <div class="fontclass">.icon-qushi</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-qiangdianzhuanyexitong"></i>
- <div class="name">强电专业系统</div>
- <div class="fontclass">.icon-qiangdianzhuanyexitong</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-shenghuoreshui"></i>
- <div class="name">生活热水</div>
- <div class="fontclass">.icon-shenghuoreshui</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-xiangmudafenbiao"></i>
- <div class="name">项目打分表</div>
- <div class="fontclass">.icon-xiangmudafenbiao</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-kongzhuangtaiicon"></i>
- <div class="name">空状态icon</div>
- <div class="fontclass">.icon-kongzhuangtaiicon</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-tongjifenxiblue"></i>
- <div class="name">统计分析blue</div>
- <div class="fontclass">.icon-tongjifenxiblue</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-yujing"></i>
- <div class="name">预警</div>
- <div class="fontclass">.icon-yujing</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-zonglan"></i>
- <div class="name">总览</div>
- <div class="fontclass">.icon-zonglan</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-zulinlogo"></i>
- <div class="name">租赁logo</div>
- <div class="fontclass">.icon-zulinlogo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-zhanghao"></i>
- <div class="name">账号</div>
- <div class="fontclass">.icon-zhanghao</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-mima"></i>
- <div class="name">密码</div>
- <div class="fontclass">.icon-mima</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-meos"></i>
- <div class="name">meos</div>
- <div class="fontclass">.icon-meos</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>
|