123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- <!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">&#xe600;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">咖啡</div>
- <div class="code">&#xe601;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">社区</div>
- <div class="code">&#xe602;</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">android</div>
- <div class="code">&#xe619;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">手机</div>
- <div class="code">&#xe621;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">电话</div>
- <div class="code">&#xe60a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">电话</div>
- <div class="code">&#xe625;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">客服</div>
- <div class="code">&#xe61b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">心</div>
- <div class="code">&#xe623;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">邀请</div>
- <div class="code">&#xe78d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">沟通</div>
- <div class="code">&#xe606;</div>
- </li>
-
- <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">&#xe646;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">域名解析</div>
- <div class="code">&#xe622;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">别针</div>
- <div class="code">&#xe60f;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">右箭头</div>
- <div class="code">&#xe61e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">app</div>
- <div class="code">&#xe62e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">餐饮</div>
- <div class="code">&#xe65c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">眼睛</div>
- <div class="code">&#xe609;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">ios</div>
- <div class="code">&#xe681;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">开发</div>
- <div class="code">&#xe62f;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">微信</div>
- <div class="code">&#xe635;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">1火箭</div>
- <div class="code">&#xe647;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">服务</div>
- <div class="code">&#xe614;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">开启活动</div>
- <div class="code">&#xe624;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">电脑</div>
- <div class="code">&#xe6d3;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">O2O</div>
- <div class="code">&#xe9ac;</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">&#xe603;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">线上</div>
- <div class="code">&#xe856;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">wifi</div>
- <div class="code">&#xe634;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">旅游</div>
- <div class="code">&#xe60d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">qq</div>
- <div class="code">&#xe6fe;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">客服</div>
- <div class="code">&#xe63e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">维护</div>
- <div class="code">&#xe604;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">买入份额</div>
- <div class="code">&#xe70a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">返回顶部</div>
- <div class="code">&#xe62a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">系统</div>
- <div class="code">&#xe626;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">菜单</div>
- <div class="code">&#xe631;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">兼容性</div>
- <div class="code">&#xe630;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">更多</div>
- <div class="code">&#xe6a4;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">UI</div>
- <div class="code">&#xe611;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">交互原型设计</div>
- <div class="code">&#xe6b9;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">客服</div>
- <div class="code">&#xe617;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">商城</div>
- <div class="code">&#xe660;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">错</div>
- <div class="code">&#xe63d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">台灯</div>
- <div class="code">&#xe605;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">iconfont整合-29</div>
- <div class="code">&#xe661;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">培训 (1)</div>
- <div class="code">&#xe644;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">上传</div>
- <div class="code">&#xe838;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">聊天</div>
- <div class="code">&#xe64c;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">相册</div>
- <div class="code">&#xe64e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">相机</div>
- <div class="code">&#xe60b;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">视觉设计</div>
- <div class="code">&#xe65d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">流程</div>
- <div class="code">&#xe642;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">拼图</div>
- <div class="code">&#xe6fa;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">下载</div>
- <div class="code">&#xe615;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">数据</div>
- <div class="code">&#xe62d;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">设计</div>
- <div class="code">&#xe60e;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">营销信息</div>
- <div class="code">&#xe616;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">汽车</div>
- <div class="code">&#xe7f7;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">徽章</div>
- <div class="code">&#xe638;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">工具</div>
- <div class="code">&#xe607;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">向右</div>
- <div class="code">&#xe66a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">设置</div>
- <div class="code">&#xe618;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">电话</div>
- <div class="code">&#xe613;</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">电脑</div>
- <div class="code">&#xe608;</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">金融</div>
- <div class="code">&#xe636;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">合同</div>
- <div class="code">&#xe698;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">6收货验收</div>
- <div class="code">&#xe684;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">累计营业额</div>
- <div class="code">&#xe61a;</div>
- </li>
-
- <li>
- <i class="icon iconfont"></i>
- <div class="name">微信</div>
- <div class="code">&#xe662;</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>
|