12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>iconfont Demo</title>
- <link rel="shortcut icon" href="//img.alicdn.com/imgextra/i2/O1CN01ZyAlrn1MwaMhqz36G_!!6000000001499-73-tps-64-64.ico" type="image/x-icon"/>
- <link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01EYTRnJ297D6vehehJ_!!6000000008020-55-tps-64-64.svg"/>
- <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>
- <style>
- .main .logo {
- margin-top: 0;
- height: auto;
- }
- .main .logo a {
- display: flex;
- align-items: center;
- }
- .main .logo .sub-title {
- margin-left: 0.5em;
- font-size: 22px;
- color: #fff;
- background: linear-gradient(-45deg, #3967FF, #B500FE);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- </style>
- </head>
- <body>
- <div class="main">
- <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank">
- <img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg">
-
- </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=1609652" 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">拆分</div>
- <div class="code-name">&#xe653;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">撤销</div>
- <div class="code-name">&#xe609;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">全屏</div>
- <div class="code-name">&#xe60d;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">重做</div>
- <div class="code-name">&#xe60e;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">组件</div>
- <div class="code-name">&#xe60f;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">编辑2</div>
- <div class="code-name">&#xe610;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">tabs</div>
- <div class="code-name">&#xe8cd;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">LC_icon_edit_line_1</div>
- <div class="code-name">&#xe65b;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">edit</div>
- <div class="code-name">&#xe72a;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">edit-2</div>
- <div class="code-name">&#xe83b;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">树型</div>
- <div class="code-name">&#xe7a5;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">模型树</div>
- <div class="code-name">&#xe608;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">关联</div>
- <div class="code-name">&#xe61f;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">edit-编辑</div>
- <div class="code-name">&#xe607;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">write-写</div>
- <div class="code-name">&#xe612;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">gallery-画廊</div>
- <div class="code-name">&#xe613;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">代码</div>
- <div class="code-name">&#xe606;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">html5</div>
- <div class="code-name">&#xe693;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">提示</div>
- <div class="code-name">&#xe615;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">time-时间</div>
- <div class="code-name">&#xe633;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">number</div>
- <div class="code-name">&#xe639;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">menu-菜单</div>
- <div class="code-name">&#xe605;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">download-下载</div>
- <div class="code-name">&#xe60b;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">upload-上传</div>
- <div class="code-name">&#xe60c;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">folder-文件夹</div>
- <div class="code-name">&#xe611;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">image-图像</div>
- <div class="code-name">&#xe61a;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">calendar-日历</div>
- <div class="code-name">&#xe60a;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">单选-粗线条</div>
- <div class="code-name">&#xe676;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">字号</div>
- <div class="code-name">&#xe623;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">button-add-按钮添加</div>
- <div class="code-name">&#xe637;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">button-remove-按钮删除</div>
- <div class="code-name">&#xe638;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">多选</div>
- <div class="code-name">&#xe66d;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">单行文本</div>
- <div class="code-name">&#xe6e6;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">多行文本</div>
- <div class="code-name">&#xe6e7;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">单选 选中</div>
- <div class="code-name">&#xe62d;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">开关3</div>
- <div class="code-name">&#xe6da;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">表格</div>
- <div class="code-name">&#xe63e;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">卡片</div>
- <div class="code-name">&#xe674;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">栅格</div>
- <div class="code-name">&#xe63f;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">下拉2</div>
- <div class="code-name">&#xe640;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">分割线</div>
- <div class="code-name">&#xec7f;</div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont"></span>
- <div class="name">评分_默认</div>
- <div class="code-name">&#xe877;</div>
- </li>
-
- </ul>
- <div class="article markdown">
- <h2 id="unicode-">Unicode 引用</h2>
- <hr>
- <p>Unicode 是字体在网页端最原始的应用方式,特点是:</p>
- <ul>
- <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
- <li>默认情况下不支持多色,直接添加多色图标会自动去色。</li>
- </ul>
- <blockquote>
- <p>注意:新版 iconfont 支持两种方式引用多色图标:SVG 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.woff2?t=1622099828259') format('woff2'),
- url('iconfont.woff?t=1622099828259') format('woff'),
- url('iconfont.ttf?t=1622099828259') format('truetype');
- }
- </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 icon-chaifen"></span>
- <div class="name">
- 拆分
- </div>
- <div class="code-name">.icon-chaifen
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-chexiao"></span>
- <div class="name">
- 撤销
- </div>
- <div class="code-name">.icon-chexiao
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-quanping"></span>
- <div class="name">
- 全屏
- </div>
- <div class="code-name">.icon-quanping
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-zhongzuo"></span>
- <div class="name">
- 重做
- </div>
- <div class="code-name">.icon-zhongzuo
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-zujian"></span>
- <div class="name">
- 组件
- </div>
- <div class="code-name">.icon-zujian
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-bianji2"></span>
- <div class="name">
- 编辑2
- </div>
- <div class="code-name">.icon-bianji2
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-tabs"></span>
- <div class="name">
- tabs
- </div>
- <div class="code-name">.icon-tabs
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-LC_icon_edit_line_1"></span>
- <div class="name">
- LC_icon_edit_line_1
- </div>
- <div class="code-name">.icon-LC_icon_edit_line_1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-edit1"></span>
- <div class="name">
- edit
- </div>
- <div class="code-name">.icon-edit1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-edit-"></span>
- <div class="name">
- edit-2
- </div>
- <div class="code-name">.icon-edit-
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-juxingkaobei"></span>
- <div class="name">
- 树型
- </div>
- <div class="code-name">.icon-juxingkaobei
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-tree"></span>
- <div class="name">
- 模型树
- </div>
- <div class="code-name">.icon-tree
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-guanlian"></span>
- <div class="name">
- 关联
- </div>
- <div class="code-name">.icon-guanlian
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-edit"></span>
- <div class="name">
- edit-编辑
- </div>
- <div class="code-name">.icon-edit
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-write"></span>
- <div class="name">
- write-写
- </div>
- <div class="code-name">.icon-write
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-gallery"></span>
- <div class="name">
- gallery-画廊
- </div>
- <div class="code-name">.icon-gallery
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-ai-code"></span>
- <div class="name">
- 代码
- </div>
- <div class="code-name">.icon-ai-code
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-html"></span>
- <div class="name">
- html5
- </div>
- <div class="code-name">.icon-html
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-zu"></span>
- <div class="name">
- 提示
- </div>
- <div class="code-name">.icon-zu
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-time"></span>
- <div class="name">
- time-时间
- </div>
- <div class="code-name">.icon-time
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-number"></span>
- <div class="name">
- number
- </div>
- <div class="code-name">.icon-number
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-menu"></span>
- <div class="name">
- menu-菜单
- </div>
- <div class="code-name">.icon-menu
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-download"></span>
- <div class="name">
- download-下载
- </div>
- <div class="code-name">.icon-download
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-upload"></span>
- <div class="name">
- upload-上传
- </div>
- <div class="code-name">.icon-upload
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-folder"></span>
- <div class="name">
- folder-文件夹
- </div>
- <div class="code-name">.icon-folder
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-image"></span>
- <div class="name">
- image-图像
- </div>
- <div class="code-name">.icon-image
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-calendar"></span>
- <div class="name">
- calendar-日历
- </div>
- <div class="code-name">.icon-calendar
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-danxuan-cuxiantiao"></span>
- <div class="name">
- 单选-粗线条
- </div>
- <div class="code-name">.icon-danxuan-cuxiantiao
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-zihao"></span>
- <div class="name">
- 字号
- </div>
- <div class="code-name">.icon-zihao
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-button-add"></span>
- <div class="name">
- button-add-按钮添加
- </div>
- <div class="code-name">.icon-button-add
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-button-remove"></span>
- <div class="name">
- button-remove-按钮删除
- </div>
- <div class="code-name">.icon-button-remove
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-duoxuan1"></span>
- <div class="name">
- 多选
- </div>
- <div class="code-name">.icon-duoxuan1
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-danhangwenben"></span>
- <div class="name">
- 单行文本
- </div>
- <div class="code-name">.icon-danhangwenben
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-duohangwenben"></span>
- <div class="name">
- 多行文本
- </div>
- <div class="code-name">.icon-duohangwenben
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-danxuanxuanzhong"></span>
- <div class="name">
- 单选 选中
- </div>
- <div class="code-name">.icon-danxuanxuanzhong
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-kaiguan3"></span>
- <div class="name">
- 开关3
- </div>
- <div class="code-name">.icon-kaiguan3
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-biaoge"></span>
- <div class="name">
- 表格
- </div>
- <div class="code-name">.icon-biaoge
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-qiapian"></span>
- <div class="name">
- 卡片
- </div>
- <div class="code-name">.icon-qiapian
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-zhage"></span>
- <div class="name">
- 栅格
- </div>
- <div class="code-name">.icon-zhage
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-xiala"></span>
- <div class="name">
- 下拉2
- </div>
- <div class="code-name">.icon-xiala
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-fengexian"></span>
- <div class="name">
- 分割线
- </div>
- <div class="code-name">.icon-fengexian
- </div>
- </li>
-
- <li class="dib">
- <span class="icon iconfont icon-pingfen_moren"></span>
- <div class="name">
- 评分_默认
- </div>
- <div class="code-name">.icon-pingfen_moren
- </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>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li>
- <li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</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 icon-xxx"></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="#icon-chaifen"></use>
- </svg>
- <div class="name">拆分</div>
- <div class="code-name">#icon-chaifen</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-chexiao"></use>
- </svg>
- <div class="name">撤销</div>
- <div class="code-name">#icon-chexiao</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-quanping"></use>
- </svg>
- <div class="name">全屏</div>
- <div class="code-name">#icon-quanping</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-zhongzuo"></use>
- </svg>
- <div class="name">重做</div>
- <div class="code-name">#icon-zhongzuo</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-zujian"></use>
- </svg>
- <div class="name">组件</div>
- <div class="code-name">#icon-zujian</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-bianji2"></use>
- </svg>
- <div class="name">编辑2</div>
- <div class="code-name">#icon-bianji2</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-tabs"></use>
- </svg>
- <div class="name">tabs</div>
- <div class="code-name">#icon-tabs</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-LC_icon_edit_line_1"></use>
- </svg>
- <div class="name">LC_icon_edit_line_1</div>
- <div class="code-name">#icon-LC_icon_edit_line_1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-edit1"></use>
- </svg>
- <div class="name">edit</div>
- <div class="code-name">#icon-edit1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-edit-"></use>
- </svg>
- <div class="name">edit-2</div>
- <div class="code-name">#icon-edit-</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-juxingkaobei"></use>
- </svg>
- <div class="name">树型</div>
- <div class="code-name">#icon-juxingkaobei</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-tree"></use>
- </svg>
- <div class="name">模型树</div>
- <div class="code-name">#icon-tree</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-guanlian"></use>
- </svg>
- <div class="name">关联</div>
- <div class="code-name">#icon-guanlian</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-edit"></use>
- </svg>
- <div class="name">edit-编辑</div>
- <div class="code-name">#icon-edit</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-write"></use>
- </svg>
- <div class="name">write-写</div>
- <div class="code-name">#icon-write</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-gallery"></use>
- </svg>
- <div class="name">gallery-画廊</div>
- <div class="code-name">#icon-gallery</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-ai-code"></use>
- </svg>
- <div class="name">代码</div>
- <div class="code-name">#icon-ai-code</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-html"></use>
- </svg>
- <div class="name">html5</div>
- <div class="code-name">#icon-html</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-zu"></use>
- </svg>
- <div class="name">提示</div>
- <div class="code-name">#icon-zu</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-time"></use>
- </svg>
- <div class="name">time-时间</div>
- <div class="code-name">#icon-time</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-number"></use>
- </svg>
- <div class="name">number</div>
- <div class="code-name">#icon-number</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-menu"></use>
- </svg>
- <div class="name">menu-菜单</div>
- <div class="code-name">#icon-menu</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-download"></use>
- </svg>
- <div class="name">download-下载</div>
- <div class="code-name">#icon-download</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-upload"></use>
- </svg>
- <div class="name">upload-上传</div>
- <div class="code-name">#icon-upload</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-folder"></use>
- </svg>
- <div class="name">folder-文件夹</div>
- <div class="code-name">#icon-folder</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-image"></use>
- </svg>
- <div class="name">image-图像</div>
- <div class="code-name">#icon-image</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-calendar"></use>
- </svg>
- <div class="name">calendar-日历</div>
- <div class="code-name">#icon-calendar</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-danxuan-cuxiantiao"></use>
- </svg>
- <div class="name">单选-粗线条</div>
- <div class="code-name">#icon-danxuan-cuxiantiao</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-zihao"></use>
- </svg>
- <div class="name">字号</div>
- <div class="code-name">#icon-zihao</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-button-add"></use>
- </svg>
- <div class="name">button-add-按钮添加</div>
- <div class="code-name">#icon-button-add</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-button-remove"></use>
- </svg>
- <div class="name">button-remove-按钮删除</div>
- <div class="code-name">#icon-button-remove</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-duoxuan1"></use>
- </svg>
- <div class="name">多选</div>
- <div class="code-name">#icon-duoxuan1</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-danhangwenben"></use>
- </svg>
- <div class="name">单行文本</div>
- <div class="code-name">#icon-danhangwenben</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-duohangwenben"></use>
- </svg>
- <div class="name">多行文本</div>
- <div class="code-name">#icon-duohangwenben</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-danxuanxuanzhong"></use>
- </svg>
- <div class="name">单选 选中</div>
- <div class="code-name">#icon-danxuanxuanzhong</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-kaiguan3"></use>
- </svg>
- <div class="name">开关3</div>
- <div class="code-name">#icon-kaiguan3</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-biaoge"></use>
- </svg>
- <div class="name">表格</div>
- <div class="code-name">#icon-biaoge</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-qiapian"></use>
- </svg>
- <div class="name">卡片</div>
- <div class="code-name">#icon-qiapian</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-zhage"></use>
- </svg>
- <div class="name">栅格</div>
- <div class="code-name">#icon-zhage</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-xiala"></use>
- </svg>
- <div class="name">下拉2</div>
- <div class="code-name">#icon-xiala</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-fengexian"></use>
- </svg>
- <div class="name">分割线</div>
- <div class="code-name">#icon-fengexian</div>
- </li>
-
- <li class="dib">
- <svg class="icon svg-icon" aria-hidden="true">
- <use xlink:href="#icon-pingfen_moren"></use>
- </svg>
- <div class="name">评分_默认</div>
- <div class="code-name">#icon-pingfen_moren</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>
|