123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888 |
- <!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: "naf-icons";
- 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#naf-icons') format('svg'); /* iOS 4.1- */
- }
- .naf-icons {
- font-family:"naf-icons" !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 naf-icons"></i>
- <div class="name">信息</div>
- <div class="code">&#xe60a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">user</div>
- <div class="code">&#xe6a0;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">身份证号</div>
- <div class="code">&#xe64a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">cc-folder</div>
- <div class="code">&#xe65e;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-5</div>
- <div class="code">&#xe63a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">发文</div>
- <div class="code">&#xe60d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb报表</div>
- <div class="code">&#xe618;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb标王</div>
- <div class="code">&#xe61a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb工具</div>
- <div class="code">&#xe61b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb明星店铺</div>
- <div class="code">&#xe61d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb品牌宝</div>
- <div class="code">&#xe61e;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb账户</div>
- <div class="code">&#xe61f;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb主页</div>
- <div class="code">&#xe620;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb搜索推广</div>
- <div class="code">&#xe621;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">wxb定位</div>
- <div class="code">&#xe624;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">积分</div>
- <div class="code">&#xe625;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">二维码</div>
- <div class="code">&#xe642;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">聚收藏</div>
- <div class="code">&#xe643;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">垃圾箱</div>
- <div class="code">&#xe645;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">链接</div>
- <div class="code">&#xe646;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">闹钟</div>
- <div class="code">&#xe648;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">扫一扫</div>
- <div class="code">&#xe649;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">设置</div>
- <div class="code">&#xe64b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">声音</div>
- <div class="code">&#xe64c;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">时间</div>
- <div class="code">&#xe64d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">收货地址</div>
- <div class="code">&#xe64e;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">首页</div>
- <div class="code">&#xe64f;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">搜索</div>
- <div class="code">&#xe651;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">锁</div>
- <div class="code">&#xe652;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">提示</div>
- <div class="code">&#xe653;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">完成</div>
- <div class="code">&#xe654;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">我的订单</div>
- <div class="code">&#xe655;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">我的反馈</div>
- <div class="code">&#xe656;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">我的红包</div>
- <div class="code">&#xe657;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">我的聚划算</div>
- <div class="code">&#xe659;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">我的优惠券</div>
- <div class="code">&#xe65a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">下拉</div>
- <div class="code">&#xe65c;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">眼睛</div>
- <div class="code">&#xe661;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">意见反馈</div>
- <div class="code">&#xe662;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">照相机</div>
- <div class="code">&#xe663;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">正确</div>
- <div class="code">&#xe664;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">消息中心</div>
- <div class="code">&#xe665;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">另存为</div>
- <div class="code">&#xe666;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">new</div>
- <div class="code">&#xe667;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">火</div>
- <div class="code">&#xe66d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">password</div>
- <div class="code">&#xe6cf;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">收文</div>
- <div class="code">&#xe65b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-youhuiquan</div>
- <div class="code">&#xe627;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-xingxing</div>
- <div class="code">&#xe628;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-mingpian</div>
- <div class="code">&#xe629;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-shouji</div>
- <div class="code">&#xe62b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-riyongbaihuo</div>
- <div class="code">&#xe62c;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-jixieqimo</div>
- <div class="code">&#xe639;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-xiangjiaosuliao</div>
- <div class="code">&#xe644;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-yiqiyibiao</div>
- <div class="code">&#xe647;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-zhaomingdianzi</div>
- <div class="code">&#xe669;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-fuwushichang</div>
- <div class="code">&#xe658;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-fangzhipige</div>
- <div class="code">&#xe66b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">iconfont-baozhuang</div>
- <div class="code">&#xe66c;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">个人实名认证</div>
- <div class="code">&#xe66e;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">企业名称认证</div>
- <div class="code">&#xe66f;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">深度认证</div>
- <div class="code">&#xe668;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">Clearup</div>
- <div class="code">&#xe65d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">网站</div>
- <div class="code">&#xe697;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">聚收藏gift</div>
- <div class="code">&#xe684;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">礼物</div>
- <div class="code">&#xe685;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">语音</div>
- <div class="code">&#xe687;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">user2</div>
- <div class="code">&#xe601;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">证书</div>
- <div class="code">&#xe608;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">User</div>
- <div class="code">&#xe743;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">feedback</div>
- <div class="code">&#xe6de;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">发文</div>
- <div class="code">&#xe604;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">招聘 </div>
- <div class="code">&#xe617;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">证书</div>
- <div class="code">&#xe650;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">all</div>
- <div class="code">&#xe68d;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">cart</div>
- <div class="code">&#xe68e;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">set</div>
- <div class="code">&#xe690;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">arrow-down</div>
- <div class="code">&#xe692;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">arrow-left</div>
- <div class="code">&#xe693;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">arrow-right</div>
- <div class="code">&#xe694;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">arrow-up</div>
- <div class="code">&#xe695;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">favorite</div>
- <div class="code">&#xe696;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">good</div>
- <div class="code">&#xe699;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">close</div>
- <div class="code">&#xe69a;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">refresh</div>
- <div class="code">&#xe6a1;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">map</div>
- <div class="code">&#xe6a2;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">account</div>
- <div class="code">&#xe6a3;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">search</div>
- <div class="code">&#xe6a4;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">download</div>
- <div class="code">&#xe6a5;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">compass</div>
- <div class="code">&#xe6a6;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">comments</div>
- <div class="code">&#xe6a7;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">down</div>
- <div class="code">&#xe6a8;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">up</div>
- <div class="code">&#xe6a9;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">play</div>
- <div class="code">&#xe6b0;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">error</div>
- <div class="code">&#xe6b1;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">prompt</div>
- <div class="code">&#xe6b2;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">success</div>
- <div class="code">&#xe6b3;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">stop</div>
- <div class="code">&#xe6b5;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">help</div>
- <div class="code">&#xe6b6;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">time</div>
- <div class="code">&#xe6b7;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">cry</div>
- <div class="code">&#xe6b8;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">add</div>
- <div class="code">&#xe6b9;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">minus</div>
- <div class="code">&#xe6ba;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">link</div>
- <div class="code">&#xe6bc;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">atm</div>
- <div class="code">&#xe6bd;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">skip</div>
- <div class="code">&#xe6be;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">attachment</div>
- <div class="code">&#xe6bf;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">browse</div>
- <div class="code">&#xe6c0;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">phone</div>
- <div class="code">&#xe6c2;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">bad</div>
- <div class="code">&#xe6c3;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">text</div>
- <div class="code">&#xe6c4;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">企业用户</div>
- <div class="code">&#xe717;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">二维码</div>
- <div class="code">&#xe6c8;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">quit</div>
- <div class="code">&#xe7f8;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">folder</div>
- <div class="code">&#xe671;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">部门</div>
- <div class="code">&#xe603;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">报表</div>
- <div class="code">&#xe6d6;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">审核</div>
- <div class="code">&#xe612;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">企业信息</div>
- <div class="code">&#xe60c;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">企业</div>
- <div class="code">&#xe60b;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">公文</div>
- <div class="code">&#xe802;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">日志</div>
- <div class="code">&#xe605;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">验证码</div>
- <div class="code">&#xe60f;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">标签</div>
- <div class="code">&#xe622;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">草稿</div>
- <div class="code">&#xe600;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">点</div>
- <div class="code">&#xe796;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">发文</div>
- <div class="code">&#xe606;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">fold</div>
- <div class="code">&#xe634;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">unfold</div>
- <div class="code">&#xe635;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">信息管理</div>
- <div class="code">&#xe619;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">回复</div>
- <div class="code">&#xe6c1;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">栏目管理</div>
- <div class="code">&#xe6aa;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">字典</div>
- <div class="code">&#xe716;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">系统管理</div>
- <div class="code">&#xe610;</div>
- </li>
-
- <li>
- <i class="icon naf-icons"></i>
- <div class="name">菜单</div>
- <div class="code">&#xe7f9;</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">'naf-icons'</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#naf-icons'</span>) format(<span class="hljs-string">'svg'</span>);
- }
- </code></pre>
- <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
- <pre><code class="lang-js hljs javascript">.naf-icons{
- font-family:<span class="hljs-string">"naf-icons"</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">"naf-icons"</span>>&#x33;<span class="xml"><span class="hljs-tag"></<span class="hljs-name">i</span>></span></span></code></pre>
- <blockquote>
- <p>"naf-icons"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
- </blockquote>
- </div>
- </body>
- </html>
|