12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>IconFont Demo</title>
- <link rel="shortcut icon" href="https://img.alicdn.com/tps/i4/TB1_oz6GVXXXXaFXpXXJDFnIXXX-64-64.ico" type="image/x-icon"/>
- <link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
- <link rel="stylesheet" href="demo.css">
- <link rel="stylesheet" href="iconfont.css">
- <script src="iconfont.js"></script>
- <!-- jQuery -->
- <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script>
- <!-- 代码高亮 -->
- <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script>
- </head>
- <body>
- <div class="main">
- <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank"></a></h1>
- <div class="nav-tabs">
- <ul id="tabs" class="dib-box">
- <li class="dib active"><span>Unicode</span></li>
- <li class="dib"><span>Font class</span></li>
- <li class="dib"><span>Symbol</span></li>
- </ul>
-
- <a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=2162195" target="_blank" class="nav-more">查看项目</a>
-
- </div>
- <div class="tab-container">
- <div class="content unicode" style="display: block;">
- <ul class="icon_lists dib-box">
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[9]</div>
- <div class="code-name">&#xe697;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[A]</div>
- <div class="code-name">&#xe698;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[7]</div>
- <div class="code-name">&#xe699;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[B]</div>
- <div class="code-name">&#xe69a;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[8]</div>
- <div class="code-name">&#xe69b;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[D]</div>
- <div class="code-name">&#xe69c;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[C]</div>
- <div class="code-name">&#xe69d;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[E]</div>
- <div class="code-name">&#xe69e;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[G]</div>
- <div class="code-name">&#xe69f;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[F]</div>
- <div class="code-name">&#xe6a1;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[I]</div>
- <div class="code-name">&#xe6a2;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[H]</div>
- <div class="code-name">&#xe6a3;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[L]</div>
- <div class="code-name">&#xe6a4;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[J]</div>
- <div class="code-name">&#xe6a5;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[O]</div>
- <div class="code-name">&#xe6a6;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[N]</div>
- <div class="code-name">&#xe6a7;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[M]</div>
- <div class="code-name">&#xe6a8;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[K]</div>
- <div class="code-name">&#xe6a9;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[S]</div>
- <div class="code-name">&#xe6aa;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[V]</div>
- <div class="code-name">&#xe6ab;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[Q]</div>
- <div class="code-name">&#xe6ac;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[T]</div>
- <div class="code-name">&#xe6ad;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[Y]</div>
- <div class="code-name">&#xe6ae;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[0]</div>
- <div class="code-name">&#xe6af;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[R]</div>
- <div class="code-name">&#xe6b0;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[W]</div>
- <div class="code-name">&#xe6b1;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[U]</div>
- <div class="code-name">&#xe6b2;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[Z]</div>
- <div class="code-name">&#xe6b3;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[4]</div>
- <div class="code-name">&#xe6b4;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[X]</div>
- <div class="code-name">&#xe6b5;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[5]</div>
- <div class="code-name">&#xe6b6;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[6]</div>
- <div class="code-name">&#xe6b7;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[1]</div>
- <div class="code-name">&#xe6b8;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[3]</div>
- <div class="code-name">&#xe6b9;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[2]</div>
- <div class="code-name">&#xe6ba;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">[P]</div>
- <div class="code-name">&#xe6bb;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name"> 提示</div>
- <div class="code-name">&#xe6a0;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">edit</div>
- <div class="code-name">&#xe66d;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">删除筛选项</div>
- <div class="code-name">&#xe600;</div>
- </li>
-
- </ul>
- <div class="article markdown">
- <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">第一步:拷贝项目下面生成的 <code>@font-face</code></h3>
- <pre><code class="language-css"
- >@font-face {
- font-family: 'iconfont';
- src: url('iconfont.eot');
- src: url('iconfont.eot?#iefix') format('embedded-opentype'),
- url('iconfont.woff2') format('woff2'),
- url('iconfont.woff') format('woff'),
- url('iconfont.ttf') format('truetype'),
- url('iconfont.svg#iconfont') format('svg');
- }
- </code></pre>
- <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
- <pre><code class="language-css"
- >.iconfont {
- font-family: "iconfont" !important;
- font-size: 16px;
- font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- </code></pre>
- <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
- <pre>
- <code class="language-html"
- ><span class="iconfont">&#x33;</span>
- </code></pre>
- <blockquote>
- <p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
- </blockquote>
- </div>
- </div>
- <div class="content font-class">
- <ul class="icon_lists dib-box">
-
- <li class="dib">
- <span class="icon iconfont iconnum_9"></span>
- <div class="name">
- [9]
- </div>
- <div class="code-name">.iconnum_9
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_0"></span>
- <div class="name">
- [A]
- </div>
- <div class="code-name">.iconwords_0
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_7"></span>
- <div class="name">
- [7]
- </div>
- <div class="code-name">.iconnum_7
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_1"></span>
- <div class="name">
- [B]
- </div>
- <div class="code-name">.iconwords_1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_8"></span>
- <div class="name">
- [8]
- </div>
- <div class="code-name">.iconnum_8
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_3"></span>
- <div class="name">
- [D]
- </div>
- <div class="code-name">.iconwords_3
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_2"></span>
- <div class="name">
- [C]
- </div>
- <div class="code-name">.iconwords_2
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_4"></span>
- <div class="name">
- [E]
- </div>
- <div class="code-name">.iconwords_4
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_6"></span>
- <div class="name">
- [G]
- </div>
- <div class="code-name">.iconwords_6
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_5"></span>
- <div class="name">
- [F]
- </div>
- <div class="code-name">.iconwords_5
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_8"></span>
- <div class="name">
- [I]
- </div>
- <div class="code-name">.iconwords_8
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_7"></span>
- <div class="name">
- [H]
- </div>
- <div class="code-name">.iconwords_7
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_11"></span>
- <div class="name">
- [L]
- </div>
- <div class="code-name">.iconwords_11
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_9"></span>
- <div class="name">
- [J]
- </div>
- <div class="code-name">.iconwords_9
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_14"></span>
- <div class="name">
- [O]
- </div>
- <div class="code-name">.iconwords_14
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_13"></span>
- <div class="name">
- [N]
- </div>
- <div class="code-name">.iconwords_13
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_12"></span>
- <div class="name">
- [M]
- </div>
- <div class="code-name">.iconwords_12
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_10"></span>
- <div class="name">
- [K]
- </div>
- <div class="code-name">.iconwords_10
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_18"></span>
- <div class="name">
- [S]
- </div>
- <div class="code-name">.iconwords_18
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_21"></span>
- <div class="name">
- [V]
- </div>
- <div class="code-name">.iconwords_21
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_16"></span>
- <div class="name">
- [Q]
- </div>
- <div class="code-name">.iconwords_16
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_19"></span>
- <div class="name">
- [T]
- </div>
- <div class="code-name">.iconwords_19
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_24"></span>
- <div class="name">
- [Y]
- </div>
- <div class="code-name">.iconwords_24
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_0"></span>
- <div class="name">
- [0]
- </div>
- <div class="code-name">.iconnum_0
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_17"></span>
- <div class="name">
- [R]
- </div>
- <div class="code-name">.iconwords_17
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_22"></span>
- <div class="name">
- [W]
- </div>
- <div class="code-name">.iconwords_22
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_20"></span>
- <div class="name">
- [U]
- </div>
- <div class="code-name">.iconwords_20
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_25"></span>
- <div class="name">
- [Z]
- </div>
- <div class="code-name">.iconwords_25
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_4"></span>
- <div class="name">
- [4]
- </div>
- <div class="code-name">.iconnum_4
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_23"></span>
- <div class="name">
- [X]
- </div>
- <div class="code-name">.iconwords_23
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_5"></span>
- <div class="name">
- [5]
- </div>
- <div class="code-name">.iconnum_5
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_6"></span>
- <div class="name">
- [6]
- </div>
- <div class="code-name">.iconnum_6
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_1"></span>
- <div class="name">
- [1]
- </div>
- <div class="code-name">.iconnum_1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_3"></span>
- <div class="name">
- [3]
- </div>
- <div class="code-name">.iconnum_3
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconnum_2"></span>
- <div class="name">
- [2]
- </div>
- <div class="code-name">.iconnum_2
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconwords_15"></span>
- <div class="name">
- [P]
- </div>
- <div class="code-name">.iconwords_15
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icontishi1"></span>
- <div class="name">
- 提示
- </div>
- <div class="code-name">.icontishi1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont iconedit"></span>
- <div class="name">
- edit
- </div>
- <div class="code-name">.iconedit
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icondelete"></span>
- <div class="name">
- 删除筛选项
- </div>
- <div class="code-name">.icondelete
- </div>
- </li>
-
- </ul>
- <div class="article markdown">
- <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="language-html"><link rel="stylesheet" href="./iconfont.css">
- </code></pre>
- <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
- <pre><code class="language-html"><span class="iconfont iconxxx"></span>
- </code></pre>
- <blockquote>
- <p>"
- iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
- </blockquote>
- </div>
- </div>
- <div class="content symbol">
- <ul class="icon_lists dib-box">
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_9"></use>
- </svg>
- <div class="name">[9]</div>
- <div class="code-name">#iconnum_9</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_0"></use>
- </svg>
- <div class="name">[A]</div>
- <div class="code-name">#iconwords_0</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_7"></use>
- </svg>
- <div class="name">[7]</div>
- <div class="code-name">#iconnum_7</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_1"></use>
- </svg>
- <div class="name">[B]</div>
- <div class="code-name">#iconwords_1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_8"></use>
- </svg>
- <div class="name">[8]</div>
- <div class="code-name">#iconnum_8</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_3"></use>
- </svg>
- <div class="name">[D]</div>
- <div class="code-name">#iconwords_3</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_2"></use>
- </svg>
- <div class="name">[C]</div>
- <div class="code-name">#iconwords_2</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_4"></use>
- </svg>
- <div class="name">[E]</div>
- <div class="code-name">#iconwords_4</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_6"></use>
- </svg>
- <div class="name">[G]</div>
- <div class="code-name">#iconwords_6</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_5"></use>
- </svg>
- <div class="name">[F]</div>
- <div class="code-name">#iconwords_5</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_8"></use>
- </svg>
- <div class="name">[I]</div>
- <div class="code-name">#iconwords_8</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_7"></use>
- </svg>
- <div class="name">[H]</div>
- <div class="code-name">#iconwords_7</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_11"></use>
- </svg>
- <div class="name">[L]</div>
- <div class="code-name">#iconwords_11</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_9"></use>
- </svg>
- <div class="name">[J]</div>
- <div class="code-name">#iconwords_9</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_14"></use>
- </svg>
- <div class="name">[O]</div>
- <div class="code-name">#iconwords_14</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_13"></use>
- </svg>
- <div class="name">[N]</div>
- <div class="code-name">#iconwords_13</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_12"></use>
- </svg>
- <div class="name">[M]</div>
- <div class="code-name">#iconwords_12</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_10"></use>
- </svg>
- <div class="name">[K]</div>
- <div class="code-name">#iconwords_10</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_18"></use>
- </svg>
- <div class="name">[S]</div>
- <div class="code-name">#iconwords_18</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_21"></use>
- </svg>
- <div class="name">[V]</div>
- <div class="code-name">#iconwords_21</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_16"></use>
- </svg>
- <div class="name">[Q]</div>
- <div class="code-name">#iconwords_16</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_19"></use>
- </svg>
- <div class="name">[T]</div>
- <div class="code-name">#iconwords_19</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_24"></use>
- </svg>
- <div class="name">[Y]</div>
- <div class="code-name">#iconwords_24</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_0"></use>
- </svg>
- <div class="name">[0]</div>
- <div class="code-name">#iconnum_0</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_17"></use>
- </svg>
- <div class="name">[R]</div>
- <div class="code-name">#iconwords_17</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_22"></use>
- </svg>
- <div class="name">[W]</div>
- <div class="code-name">#iconwords_22</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_20"></use>
- </svg>
- <div class="name">[U]</div>
- <div class="code-name">#iconwords_20</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_25"></use>
- </svg>
- <div class="name">[Z]</div>
- <div class="code-name">#iconwords_25</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_4"></use>
- </svg>
- <div class="name">[4]</div>
- <div class="code-name">#iconnum_4</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_23"></use>
- </svg>
- <div class="name">[X]</div>
- <div class="code-name">#iconwords_23</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_5"></use>
- </svg>
- <div class="name">[5]</div>
- <div class="code-name">#iconnum_5</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_6"></use>
- </svg>
- <div class="name">[6]</div>
- <div class="code-name">#iconnum_6</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_1"></use>
- </svg>
- <div class="name">[1]</div>
- <div class="code-name">#iconnum_1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_3"></use>
- </svg>
- <div class="name">[3]</div>
- <div class="code-name">#iconnum_3</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconnum_2"></use>
- </svg>
- <div class="name">[2]</div>
- <div class="code-name">#iconnum_2</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconwords_15"></use>
- </svg>
- <div class="name">[P]</div>
- <div class="code-name">#iconwords_15</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icontishi1"></use>
- </svg>
- <div class="name"> 提示</div>
- <div class="code-name">#icontishi1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#iconedit"></use>
- </svg>
- <div class="name">edit</div>
- <div class="code-name">#iconedit</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icondelete"></use>
- </svg>
- <div class="name">删除筛选项</div>
- <div class="code-name">#icondelete</div>
- </li>
-
- </ul>
- <div class="article markdown">
- <h2 id="symbol-">Symbol 引用</h2>
- <hr>
- <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
- 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p>
- <ul>
- <li>支持多色图标了,不再受单色限制。</li>
- <li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li>
- <li>兼容性较差,支持 IE9+,及现代浏览器。</li>
- <li>浏览器渲染 SVG 的性能一般,还不如 png。</li>
- </ul>
- <p>使用步骤如下:</p>
- <h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3>
- <pre><code class="language-html"><script src="./iconfont.js"></script>
- </code></pre>
- <h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3>
- <pre><code class="language-html"><style>
- .icon {
- width: 1em;
- height: 1em;
- vertical-align: -0.15em;
- fill: currentColor;
- overflow: hidden;
- }
- </style>
- </code></pre>
- <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
- <pre><code class="language-html"><svg class="icon" aria-hidden="true">
- <use xlink:href="#icon-xxx"></use>
- </svg>
- </code></pre>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- $('.tab-container .content:first').show()
- $('#tabs li').click(function (e) {
- var tabContent = $('.tab-container .content')
- var index = $(this).index()
- if ($(this).hasClass('active')) {
- return
- } else {
- $('#tabs li').removeClass('active')
- $(this).addClass('active')
- tabContent.hide().eq(index).fadeIn()
- }
- })
- })
- </script>
- </body>
- </html>
|