123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559 |
-
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>IconFont</title>
- <link rel="stylesheet" href="demo.css">
-
- <style type="text/css">
-
- @font-face {font-family: "iconfont";
- src: url('iconfont.eot'); /* IE9*/
- src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('iconfont.woff') format('woff'), /* chrome, firefox */
- url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
- url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
- }
-
- .iconfont {
- font-family:"iconfont" !important;
- font-size:16px;
- font-style:normal;
- -webkit-font-smoothing: antialiased;
- -webkit-text-stroke-width: 0.2px;
- -moz-osx-font-smoothing: grayscale;
- }
-
- </style>
- </head>
- <body>
- <div class="main markdown">
- <h1>IconFont 图标</h1>
- <ul class="icon_lists clear">
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">会员</div>
- <div class="code">&#xe61d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">健康 水滴</div>
- <div class="code">&#xe60c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">报错</div>
- <div class="code">&#xe777;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">225默认头像</div>
- <div class="code">&#xe8c9;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">accessory</div>
- <div class="code">&#xe6dd;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">add</div>
- <div class="code">&#xe6df;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">addition_fill</div>
- <div class="code">&#xe6e1;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">addition</div>
- <div class="code">&#xe6e0;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">addressbook_fill</div>
- <div class="code">&#xe6e2;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">addressbook</div>
- <div class="code">&#xe6e3;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">browse_fill</div>
- <div class="code">&#xe6e4;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">brush</div>
- <div class="code">&#xe6e5;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">brush_fill</div>
- <div class="code">&#xe6e6;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">computer_fill</div>
- <div class="code">&#xe6eb;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">computer</div>
- <div class="code">&#xe6ec;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">coordinates_fill</div>
- <div class="code">&#xe6ed;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">coordinates</div>
- <div class="code">&#xe6ee;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">coupons_fill</div>
- <div class="code">&#xe6ef;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">customerservice_fill</div>
- <div class="code">&#xe6f0;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">customerservice</div>
- <div class="code">&#xe6f1;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">document</div>
- <div class="code">&#xe6f3;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">document_fill</div>
- <div class="code">&#xe6f4;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">dynamic_fill</div>
- <div class="code">&#xe6f6;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">editor</div>
- <div class="code">&#xe6f5;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">emoji</div>
- <div class="code">&#xe6f9;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">enter</div>
- <div class="code">&#xe6f8;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">flag_fill</div>
- <div class="code">&#xe6fb;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">flag</div>
- <div class="code">&#xe6fc;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">group_fill</div>
- <div class="code">&#xe6ff;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">headlines_fill</div>
- <div class="code">&#xe700;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">homepage_fill</div>
- <div class="code">&#xe702;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">homepage</div>
- <div class="code">&#xe703;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">interactive_fill</div>
- <div class="code">&#xe704;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">interactive</div>
- <div class="code">&#xe705;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">label</div>
- <div class="code">&#xe706;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">like_fill</div>
- <div class="code">&#xe707;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">like</div>
- <div class="code">&#xe708;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">lock</div>
- <div class="code">&#xe709;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">mail</div>
- <div class="code">&#xe70a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">manage</div>
- <div class="code">&#xe70b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">message</div>
- <div class="code">&#xe70c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">mine_fill</div>
- <div class="code">&#xe70e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">mobilephone_fill</div>
- <div class="code">&#xe710;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">mobilephone</div>
- <div class="code">&#xe70f;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">offline_fill</div>
- <div class="code">&#xe712;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">offline</div>
- <div class="code">&#xe713;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">order_fill</div>
- <div class="code">&#xe714;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">other</div>
- <div class="code">&#xe715;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">picture_fill</div>
- <div class="code">&#xe716;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">prompt_fill</div>
- <div class="code">&#xe71b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">qrcode_fill</div>
- <div class="code">&#xe71c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">remind_fill</div>
- <div class="code">&#xe71f;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">remind</div>
- <div class="code">&#xe721;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">return</div>
- <div class="code">&#xe720;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">service_fill</div>
- <div class="code">&#xe727;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">service</div>
- <div class="code">&#xe728;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">setup_fill</div>
- <div class="code">&#xe729;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">setup</div>
- <div class="code">&#xe72a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">smallscreen</div>
- <div class="code">&#xe72b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">success_fill</div>
- <div class="code">&#xe72d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">success</div>
- <div class="code">&#xe72e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">time_fill</div>
- <div class="code">&#xe735;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">trash</div>
- <div class="code">&#xe738;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">trash_fill</div>
- <div class="code">&#xe739;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">undo</div>
- <div class="code">&#xe73a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">workbench_fill</div>
- <div class="code">&#xe73e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">导入</div>
- <div class="code">&#xe639;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">search</div>
- <div class="code">&#xe741;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">packup</div>
- <div class="code">&#xe749;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">unfold</div>
- <div class="code">&#xe74a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">wangwang_fill</div>
- <div class="code">&#xe74b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">验证码</div>
- <div class="code">&#xe600;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">报错-插画</div>
- <div class="code">&#xe610;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">朋友</div>
- <div class="code">&#xe643;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">所有</div>
- <div class="code">&#xe644;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">会员</div>
- <div class="code">&#xe645;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">会员</div>
- <div class="code">&#xe641;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">空页面</div>
- <div class="code">&#xe637;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">logout</div>
- <div class="code">&#xe78c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">cloud upload-o</div>
- <div class="code">&#xe7d9;</div>
- </li>
-
- </ul>
- <h2 id="unicode-">unicode引用</h2>
- <hr>
-
- <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
- <ul>
- <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
- <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
- <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
- </ul>
- <blockquote>
- <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
- </blockquote>
- <p>unicode使用步骤如下:</p>
- <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
- <pre><code class="lang-js hljs javascript">@font-face {
- font-family: <span class="hljs-string">'iconfont'</span>;
- src: url(<span class="hljs-string">'iconfont.eot'</span>);
- src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
- url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
- url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
- url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
- }
- </code></pre>
- <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
- <pre><code class="lang-js hljs javascript">.iconfont{
- font-family:<span class="hljs-string">"iconfont"</span> !important;
- font-size:<span class="hljs-number">16</span>px;font-style:normal;
- -webkit-font-smoothing: antialiased;
- -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
- -moz-osx-font-smoothing: grayscale;
- }
- </code></pre>
- <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
- <pre><code class="lang-js hljs javascript"><i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>>&#x33;<span class="xml"><span class="hljs-tag"></<span class="hljs-name">i</span>></span></span></code></pre>
-
- <blockquote>
- <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
- </blockquote>
- </div>
-
-
- </body>
- </html>
|