123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521 |
-
- <!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-wsmp-payuser"></i>
- <div class="name">会员</div>
- <div class="fontclass">.icon-wsmp-payuser</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-jiankangshuidi"></i>
- <div class="name">健康 水滴</div>
- <div class="fontclass">.icon-jiankangshuidi</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-iconbaocuo"></i>
- <div class="name">报错</div>
- <div class="fontclass">.icon-iconbaocuo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-morentouxiang"></i>
- <div class="name">225默认头像</div>
- <div class="fontclass">.icon-morentouxiang</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-accessory"></i>
- <div class="name">accessory</div>
- <div class="fontclass">.icon-accessory</div>
- </li>
-
- <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-addition_fill"></i>
- <div class="name">addition_fill</div>
- <div class="fontclass">.icon-addition_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-addition"></i>
- <div class="name">addition</div>
- <div class="fontclass">.icon-addition</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-addressbook_fill"></i>
- <div class="name">addressbook_fill</div>
- <div class="fontclass">.icon-addressbook_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-addressbook"></i>
- <div class="name">addressbook</div>
- <div class="fontclass">.icon-addressbook</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-browse_fill"></i>
- <div class="name">browse_fill</div>
- <div class="fontclass">.icon-browse_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-brush"></i>
- <div class="name">brush</div>
- <div class="fontclass">.icon-brush</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-brush_fill"></i>
- <div class="name">brush_fill</div>
- <div class="fontclass">.icon-brush_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-computer_fill"></i>
- <div class="name">computer_fill</div>
- <div class="fontclass">.icon-computer_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-computer"></i>
- <div class="name">computer</div>
- <div class="fontclass">.icon-computer</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-coordinates_fill"></i>
- <div class="name">coordinates_fill</div>
- <div class="fontclass">.icon-coordinates_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-coordinates"></i>
- <div class="name">coordinates</div>
- <div class="fontclass">.icon-coordinates</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-coupons_fill"></i>
- <div class="name">coupons_fill</div>
- <div class="fontclass">.icon-coupons_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-customerservice_fill"></i>
- <div class="name">customerservice_fill</div>
- <div class="fontclass">.icon-customerservice_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-customerservice"></i>
- <div class="name">customerservice</div>
- <div class="fontclass">.icon-customerservice</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-document"></i>
- <div class="name">document</div>
- <div class="fontclass">.icon-document</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-document_fill"></i>
- <div class="name">document_fill</div>
- <div class="fontclass">.icon-document_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-dynamic_fill"></i>
- <div class="name">dynamic_fill</div>
- <div class="fontclass">.icon-dynamic_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-editor"></i>
- <div class="name">editor</div>
- <div class="fontclass">.icon-editor</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-emoji"></i>
- <div class="name">emoji</div>
- <div class="fontclass">.icon-emoji</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-enter"></i>
- <div class="name">enter</div>
- <div class="fontclass">.icon-enter</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-flag_fill"></i>
- <div class="name">flag_fill</div>
- <div class="fontclass">.icon-flag_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-flag"></i>
- <div class="name">flag</div>
- <div class="fontclass">.icon-flag</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-group_fill"></i>
- <div class="name">group_fill</div>
- <div class="fontclass">.icon-group_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-headlines_fill"></i>
- <div class="name">headlines_fill</div>
- <div class="fontclass">.icon-headlines_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-homepage_fill"></i>
- <div class="name">homepage_fill</div>
- <div class="fontclass">.icon-homepage_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-homepage"></i>
- <div class="name">homepage</div>
- <div class="fontclass">.icon-homepage</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-interactive_fill"></i>
- <div class="name">interactive_fill</div>
- <div class="fontclass">.icon-interactive_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-interactive"></i>
- <div class="name">interactive</div>
- <div class="fontclass">.icon-interactive</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-label"></i>
- <div class="name">label</div>
- <div class="fontclass">.icon-label</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-like_fill"></i>
- <div class="name">like_fill</div>
- <div class="fontclass">.icon-like_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-like"></i>
- <div class="name">like</div>
- <div class="fontclass">.icon-like</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-lock"></i>
- <div class="name">lock</div>
- <div class="fontclass">.icon-lock</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-mail"></i>
- <div class="name">mail</div>
- <div class="fontclass">.icon-mail</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-manage"></i>
- <div class="name">manage</div>
- <div class="fontclass">.icon-manage</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-mine_fill"></i>
- <div class="name">mine_fill</div>
- <div class="fontclass">.icon-mine_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-mobilephone_fill"></i>
- <div class="name">mobilephone_fill</div>
- <div class="fontclass">.icon-mobilephone_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-mobilephone"></i>
- <div class="name">mobilephone</div>
- <div class="fontclass">.icon-mobilephone</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-offline_fill"></i>
- <div class="name">offline_fill</div>
- <div class="fontclass">.icon-offline_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-offline"></i>
- <div class="name">offline</div>
- <div class="fontclass">.icon-offline</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-order_fill"></i>
- <div class="name">order_fill</div>
- <div class="fontclass">.icon-order_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-other"></i>
- <div class="name">other</div>
- <div class="fontclass">.icon-other</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-picture_fill"></i>
- <div class="name">picture_fill</div>
- <div class="fontclass">.icon-picture_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-prompt_fill"></i>
- <div class="name">prompt_fill</div>
- <div class="fontclass">.icon-prompt_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-qrcode_fill"></i>
- <div class="name">qrcode_fill</div>
- <div class="fontclass">.icon-qrcode_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-remind_fill"></i>
- <div class="name">remind_fill</div>
- <div class="fontclass">.icon-remind_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-remind"></i>
- <div class="name">remind</div>
- <div class="fontclass">.icon-remind</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-return"></i>
- <div class="name">return</div>
- <div class="fontclass">.icon-return</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-service_fill"></i>
- <div class="name">service_fill</div>
- <div class="fontclass">.icon-service_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-service"></i>
- <div class="name">service</div>
- <div class="fontclass">.icon-service</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-setup_fill"></i>
- <div class="name">setup_fill</div>
- <div class="fontclass">.icon-setup_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-setup"></i>
- <div class="name">setup</div>
- <div class="fontclass">.icon-setup</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-smallscreen"></i>
- <div class="name">smallscreen</div>
- <div class="fontclass">.icon-smallscreen</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-success_fill"></i>
- <div class="name">success_fill</div>
- <div class="fontclass">.icon-success_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-success"></i>
- <div class="name">success</div>
- <div class="fontclass">.icon-success</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-time_fill"></i>
- <div class="name">time_fill</div>
- <div class="fontclass">.icon-time_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-trash"></i>
- <div class="name">trash</div>
- <div class="fontclass">.icon-trash</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-trash_fill"></i>
- <div class="name">trash_fill</div>
- <div class="fontclass">.icon-trash_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-undo"></i>
- <div class="name">undo</div>
- <div class="fontclass">.icon-undo</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-workbench_fill"></i>
- <div class="name">workbench_fill</div>
- <div class="fontclass">.icon-workbench_fill</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-daoru"></i>
- <div class="name">导入</div>
- <div class="fontclass">.icon-daoru</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-packup"></i>
- <div class="name">packup</div>
- <div class="fontclass">.icon-packup</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-unfold"></i>
- <div class="name">unfold</div>
- <div class="fontclass">.icon-unfold</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-wangwang"></i>
- <div class="name">wangwang_fill</div>
- <div class="fontclass">.icon-wangwang</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-yanzhengma"></i>
- <div class="name">验证码</div>
- <div class="fontclass">.icon-yanzhengma</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-baocuo-chahua"></i>
- <div class="name">报错-插画</div>
- <div class="fontclass">.icon-baocuo-chahua</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-pengyou"></i>
- <div class="name">朋友</div>
- <div class="fontclass">.icon-pengyou</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-suoyou"></i>
- <div class="name">所有</div>
- <div class="fontclass">.icon-suoyou</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-huiyuan"></i>
- <div class="name">会员</div>
- <div class="fontclass">.icon-huiyuan</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-huiyuan1"></i>
- <div class="name">会员</div>
- <div class="fontclass">.icon-huiyuan1</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-kongyemian"></i>
- <div class="name">空页面</div>
- <div class="fontclass">.icon-kongyemian</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-logout"></i>
- <div class="name">logout</div>
- <div class="fontclass">.icon-logout</div>
- </li>
-
- <li>
- <i class="icon iconfont icon-cloudupload-o"></i>
- <div class="name">cloud upload-o</div>
- <div class="fontclass">.icon-cloudupload-o</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>
|