demo_index.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>IconFont Demo</title>
  6. <link rel="shortcut icon" href="https://gtms04.alicdn.com/tps/i4/TB1_oz6GVXXXXaFXpXXJDFnIXXX-64-64.ico" type="image/x-icon"/>
  7. <link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
  8. <link rel="stylesheet" href="demo.css">
  9. <link rel="stylesheet" href="iconfont.css">
  10. <script src="iconfont.js"></script>
  11. <!-- jQuery -->
  12. <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script>
  13. <!-- 代码高亮 -->
  14. <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script>
  15. </head>
  16. <body>
  17. <div class="main">
  18. <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank">&#xe86b;</a></h1>
  19. <div class="nav-tabs">
  20. <ul id="tabs" class="dib-box">
  21. <li class="dib active"><span>Unicode</span></li>
  22. <li class="dib"><span>Font class</span></li>
  23. <li class="dib"><span>Symbol</span></li>
  24. </ul>
  25. <a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=1052039" target="_blank" class="nav-more">查看项目</a>
  26. </div>
  27. <div class="tab-container">
  28. <div class="content unicode" style="display: block;">
  29. <ul class="icon_lists dib-box">
  30. <li class="dib">
  31. <span class="icon iconfont">&#xe6cc;</span>
  32. <div class="name">正常</div>
  33. <div class="code-name">&amp;#xe6cc;</div>
  34. </li>
  35. <li class="dib">
  36. <span class="icon iconfont">&#xe6a9;</span>
  37. <div class="name">已逾期</div>
  38. <div class="code-name">&amp;#xe6a9;</div>
  39. </li>
  40. <li class="dib">
  41. <span class="icon iconfont">&#xe65c;</span>
  42. <div class="name">错误</div>
  43. <div class="code-name">&amp;#xe65c;</div>
  44. </li>
  45. <li class="dib">
  46. <span class="icon iconfont">&#xe600;</span>
  47. <div class="name">评分</div>
  48. <div class="code-name">&amp;#xe600;</div>
  49. </li>
  50. <li class="dib">
  51. <span class="icon iconfont">&#xe62f;</span>
  52. <div class="name">报修列表</div>
  53. <div class="code-name">&amp;#xe62f;</div>
  54. </li>
  55. <li class="dib">
  56. <span class="icon iconfont">&#xe631;</span>
  57. <div class="name">常见问题</div>
  58. <div class="code-name">&amp;#xe631;</div>
  59. </li>
  60. <li class="dib">
  61. <span class="icon iconfont">&#xe635;</span>
  62. <div class="name">icon_zhengzaijinx</div>
  63. <div class="code-name">&amp;#xe635;</div>
  64. </li>
  65. <li class="dib">
  66. <span class="icon iconfont">&#xe636;</span>
  67. <div class="name">icon_weizuo</div>
  68. <div class="code-name">&amp;#xe636;</div>
  69. </li>
  70. <li class="dib">
  71. <span class="icon iconfont">&#xe687;</span>
  72. <div class="name">即将</div>
  73. <div class="code-name">&amp;#xe687;</div>
  74. </li>
  75. <li class="dib">
  76. <span class="icon iconfont">&#xe68f;</span>
  77. <div class="name">默认</div>
  78. <div class="code-name">&amp;#xe68f;</div>
  79. </li>
  80. <li class="dib">
  81. <span class="icon iconfont">&#xe671;</span>
  82. <div class="name">新建 (1)</div>
  83. <div class="code-name">&amp;#xe671;</div>
  84. </li>
  85. <li class="dib">
  86. <span class="icon iconfont">&#xe672;</span>
  87. <div class="name">常见问题 (2)</div>
  88. <div class="code-name">&amp;#xe672;</div>
  89. </li>
  90. <li class="dib">
  91. <span class="icon iconfont">&#xe673;</span>
  92. <div class="name">服务指南</div>
  93. <div class="code-name">&amp;#xe673;</div>
  94. </li>
  95. <li class="dib">
  96. <span class="icon iconfont">&#xe674;</span>
  97. <div class="name">报修面</div>
  98. <div class="code-name">&amp;#xe674;</div>
  99. </li>
  100. <li class="dib">
  101. <span class="icon iconfont">&#xe675;</span>
  102. <div class="name">报修线</div>
  103. <div class="code-name">&amp;#xe675;</div>
  104. </li>
  105. <li class="dib">
  106. <span class="icon iconfont">&#xe676;</span>
  107. <div class="name">不受理</div>
  108. <div class="code-name">&amp;#xe676;</div>
  109. </li>
  110. <li class="dib">
  111. <span class="icon iconfont">&#xe677;</span>
  112. <div class="name">处理中</div>
  113. <div class="code-name">&amp;#xe677;</div>
  114. </li>
  115. <li class="dib">
  116. <span class="icon iconfont">&#xe678;</span>
  117. <div class="name">待评价</div>
  118. <div class="code-name">&amp;#xe678;</div>
  119. </li>
  120. <li class="dib">
  121. <span class="icon iconfont">&#xe679;</span>
  122. <div class="name">删除</div>
  123. <div class="code-name">&amp;#xe679;</div>
  124. </li>
  125. <li class="dib">
  126. <span class="icon iconfont">&#xe67a;</span>
  127. <div class="name">点赞</div>
  128. <div class="code-name">&amp;#xe67a;</div>
  129. </li>
  130. <li class="dib">
  131. <span class="icon iconfont">&#xe67b;</span>
  132. <div class="name">手机</div>
  133. <div class="code-name">&amp;#xe67b;</div>
  134. </li>
  135. <li class="dib">
  136. <span class="icon iconfont">&#xe67c;</span>
  137. <div class="name">待受理</div>
  138. <div class="code-name">&amp;#xe67c;</div>
  139. </li>
  140. <li class="dib">
  141. <span class="icon iconfont">&#xe67d;</span>
  142. <div class="name">首页面</div>
  143. <div class="code-name">&amp;#xe67d;</div>
  144. </li>
  145. <li class="dib">
  146. <span class="icon iconfont">&#xe67e;</span>
  147. <div class="name">首页线</div>
  148. <div class="code-name">&amp;#xe67e;</div>
  149. </li>
  150. <li class="dib">
  151. <span class="icon iconfont">&#xe67f;</span>
  152. <div class="name">我的面</div>
  153. <div class="code-name">&amp;#xe67f;</div>
  154. </li>
  155. <li class="dib">
  156. <span class="icon iconfont">&#xe680;</span>
  157. <div class="name">我的线</div>
  158. <div class="code-name">&amp;#xe680;</div>
  159. </li>
  160. <li class="dib">
  161. <span class="icon iconfont">&#xe681;</span>
  162. <div class="name">最新报修</div>
  163. <div class="code-name">&amp;#xe681;</div>
  164. </li>
  165. <li class="dib">
  166. <span class="icon iconfont">&#xe682;</span>
  167. <div class="name">已撤回</div>
  168. <div class="code-name">&amp;#xe682;</div>
  169. </li>
  170. <li class="dib">
  171. <span class="icon iconfont">&#xe683;</span>
  172. <div class="name">message</div>
  173. <div class="code-name">&amp;#xe683;</div>
  174. </li>
  175. <li class="dib">
  176. <span class="icon iconfont">&#xe684;</span>
  177. <div class="name">已解决</div>
  178. <div class="code-name">&amp;#xe684;</div>
  179. </li>
  180. <li class="dib">
  181. <span class="icon iconfont">&#xe685;</span>
  182. <div class="name">巡检</div>
  183. <div class="code-name">&amp;#xe685;</div>
  184. </li>
  185. <li class="dib">
  186. <span class="icon iconfont">&#xe686;</span>
  187. <div class="name">巡检2</div>
  188. <div class="code-name">&amp;#xe686;</div>
  189. </li>
  190. <li class="dib">
  191. <span class="icon iconfont">&#xe688;</span>
  192. <div class="name">巡检</div>
  193. <div class="code-name">&amp;#xe688;</div>
  194. </li>
  195. <li class="dib">
  196. <span class="icon iconfont">&#xe689;</span>
  197. <div class="name">引用</div>
  198. <div class="code-name">&amp;#xe689;</div>
  199. </li>
  200. </ul>
  201. <div class="article markdown">
  202. <h2 id="unicode-">Unicode 引用</h2>
  203. <hr>
  204. <p>Unicode 是字体在网页端最原始的应用方式,特点是:</p>
  205. <ul>
  206. <li>兼容性最好,支持 IE6+,及所有现代浏览器。</li>
  207. <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
  208. <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
  209. </ul>
  210. <blockquote>
  211. <p>注意:新版 iconfont 支持多色图标,这些多色图标在 Unicode 模式下将不能使用,如果有需求建议使用symbol 的引用方式</p>
  212. </blockquote>
  213. <p>Unicode 使用步骤如下:</p>
  214. <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3>
  215. <pre><code class="language-css"
  216. >@font-face {
  217. font-family: 'iconfont';
  218. src: url('iconfont.eot');
  219. src: url('iconfont.eot?#iefix') format('embedded-opentype'),
  220. url('iconfont.woff2') format('woff2'),
  221. url('iconfont.woff') format('woff'),
  222. url('iconfont.ttf') format('truetype'),
  223. url('iconfont.svg#iconfont') format('svg');
  224. }
  225. </code></pre>
  226. <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
  227. <pre><code class="language-css"
  228. >.iconfont {
  229. font-family: "iconfont" !important;
  230. font-size: 16px;
  231. font-style: normal;
  232. -webkit-font-smoothing: antialiased;
  233. -moz-osx-font-smoothing: grayscale;
  234. }
  235. </code></pre>
  236. <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
  237. <pre>
  238. <code class="language-html"
  239. >&lt;span class="iconfont"&gt;&amp;#x33;&lt;/span&gt;
  240. </code></pre>
  241. <blockquote>
  242. <p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
  243. </blockquote>
  244. </div>
  245. </div>
  246. <div class="content font-class">
  247. <ul class="icon_lists dib-box">
  248. <li class="dib">
  249. <span class="icon iconfont icon-zhengchang"></span>
  250. <div class="name">
  251. 正常
  252. </div>
  253. <div class="code-name">.icon-zhengchang
  254. </div>
  255. </li>
  256. <li class="dib">
  257. <span class="icon iconfont icon-yiyuqi"></span>
  258. <div class="name">
  259. 已逾期
  260. </div>
  261. <div class="code-name">.icon-yiyuqi
  262. </div>
  263. </li>
  264. <li class="dib">
  265. <span class="icon iconfont icon-cuowu"></span>
  266. <div class="name">
  267. 错误
  268. </div>
  269. <div class="code-name">.icon-cuowu
  270. </div>
  271. </li>
  272. <li class="dib">
  273. <span class="icon iconfont icon-pingfen-copy"></span>
  274. <div class="name">
  275. 评分
  276. </div>
  277. <div class="code-name">.icon-pingfen-copy
  278. </div>
  279. </li>
  280. <li class="dib">
  281. <span class="icon iconfont icon-baoxiuliebiao"></span>
  282. <div class="name">
  283. 报修列表
  284. </div>
  285. <div class="code-name">.icon-baoxiuliebiao
  286. </div>
  287. </li>
  288. <li class="dib">
  289. <span class="icon iconfont icon-changjianwenti1"></span>
  290. <div class="name">
  291. 常见问题
  292. </div>
  293. <div class="code-name">.icon-changjianwenti1
  294. </div>
  295. </li>
  296. <li class="dib">
  297. <span class="icon iconfont icon-icon_zhengzaijinx"></span>
  298. <div class="name">
  299. icon_zhengzaijinx
  300. </div>
  301. <div class="code-name">.icon-icon_zhengzaijinx
  302. </div>
  303. </li>
  304. <li class="dib">
  305. <span class="icon iconfont icon-icon_weizuo"></span>
  306. <div class="name">
  307. icon_weizuo
  308. </div>
  309. <div class="code-name">.icon-icon_weizuo
  310. </div>
  311. </li>
  312. <li class="dib">
  313. <span class="icon iconfont icon-jijiang"></span>
  314. <div class="name">
  315. 即将
  316. </div>
  317. <div class="code-name">.icon-jijiang
  318. </div>
  319. </li>
  320. <li class="dib">
  321. <span class="icon iconfont icon-moren"></span>
  322. <div class="name">
  323. 默认
  324. </div>
  325. <div class="code-name">.icon-moren
  326. </div>
  327. </li>
  328. <li class="dib">
  329. <span class="icon iconfont icon-xinjian"></span>
  330. <div class="name">
  331. 新建 (1)
  332. </div>
  333. <div class="code-name">.icon-xinjian
  334. </div>
  335. </li>
  336. <li class="dib">
  337. <span class="icon iconfont icon-changjianwenti"></span>
  338. <div class="name">
  339. 常见问题 (2)
  340. </div>
  341. <div class="code-name">.icon-changjianwenti
  342. </div>
  343. </li>
  344. <li class="dib">
  345. <span class="icon iconfont icon-fuwuzhinan"></span>
  346. <div class="name">
  347. 服务指南
  348. </div>
  349. <div class="code-name">.icon-fuwuzhinan
  350. </div>
  351. </li>
  352. <li class="dib">
  353. <span class="icon iconfont icon-baoxiumian"></span>
  354. <div class="name">
  355. 报修面
  356. </div>
  357. <div class="code-name">.icon-baoxiumian
  358. </div>
  359. </li>
  360. <li class="dib">
  361. <span class="icon iconfont icon-baoxiuxian"></span>
  362. <div class="name">
  363. 报修线
  364. </div>
  365. <div class="code-name">.icon-baoxiuxian
  366. </div>
  367. </li>
  368. <li class="dib">
  369. <span class="icon iconfont icon-bushouli"></span>
  370. <div class="name">
  371. 不受理
  372. </div>
  373. <div class="code-name">.icon-bushouli
  374. </div>
  375. </li>
  376. <li class="dib">
  377. <span class="icon iconfont icon-chulizhong"></span>
  378. <div class="name">
  379. 处理中
  380. </div>
  381. <div class="code-name">.icon-chulizhong
  382. </div>
  383. </li>
  384. <li class="dib">
  385. <span class="icon iconfont icon-daipingjia"></span>
  386. <div class="name">
  387. 待评价
  388. </div>
  389. <div class="code-name">.icon-daipingjia
  390. </div>
  391. </li>
  392. <li class="dib">
  393. <span class="icon iconfont icon-shanchu"></span>
  394. <div class="name">
  395. 删除
  396. </div>
  397. <div class="code-name">.icon-shanchu
  398. </div>
  399. </li>
  400. <li class="dib">
  401. <span class="icon iconfont icon-dianzan"></span>
  402. <div class="name">
  403. 点赞
  404. </div>
  405. <div class="code-name">.icon-dianzan
  406. </div>
  407. </li>
  408. <li class="dib">
  409. <span class="icon iconfont icon-shouji"></span>
  410. <div class="name">
  411. 手机
  412. </div>
  413. <div class="code-name">.icon-shouji
  414. </div>
  415. </li>
  416. <li class="dib">
  417. <span class="icon iconfont icon-daishouli"></span>
  418. <div class="name">
  419. 待受理
  420. </div>
  421. <div class="code-name">.icon-daishouli
  422. </div>
  423. </li>
  424. <li class="dib">
  425. <span class="icon iconfont icon-shouyemian"></span>
  426. <div class="name">
  427. 首页面
  428. </div>
  429. <div class="code-name">.icon-shouyemian
  430. </div>
  431. </li>
  432. <li class="dib">
  433. <span class="icon iconfont icon-shouyexian"></span>
  434. <div class="name">
  435. 首页线
  436. </div>
  437. <div class="code-name">.icon-shouyexian
  438. </div>
  439. </li>
  440. <li class="dib">
  441. <span class="icon iconfont icon-wodemian"></span>
  442. <div class="name">
  443. 我的面
  444. </div>
  445. <div class="code-name">.icon-wodemian
  446. </div>
  447. </li>
  448. <li class="dib">
  449. <span class="icon iconfont icon-wodexian"></span>
  450. <div class="name">
  451. 我的线
  452. </div>
  453. <div class="code-name">.icon-wodexian
  454. </div>
  455. </li>
  456. <li class="dib">
  457. <span class="icon iconfont icon-zuixinbaoxiu"></span>
  458. <div class="name">
  459. 最新报修
  460. </div>
  461. <div class="code-name">.icon-zuixinbaoxiu
  462. </div>
  463. </li>
  464. <li class="dib">
  465. <span class="icon iconfont icon-yichehui"></span>
  466. <div class="name">
  467. 已撤回
  468. </div>
  469. <div class="code-name">.icon-yichehui
  470. </div>
  471. </li>
  472. <li class="dib">
  473. <span class="icon iconfont icon-message"></span>
  474. <div class="name">
  475. message
  476. </div>
  477. <div class="code-name">.icon-message
  478. </div>
  479. </li>
  480. <li class="dib">
  481. <span class="icon iconfont icon-yijiejue"></span>
  482. <div class="name">
  483. 已解决
  484. </div>
  485. <div class="code-name">.icon-yijiejue
  486. </div>
  487. </li>
  488. <li class="dib">
  489. <span class="icon iconfont icon-xunjian"></span>
  490. <div class="name">
  491. 巡检
  492. </div>
  493. <div class="code-name">.icon-xunjian
  494. </div>
  495. </li>
  496. <li class="dib">
  497. <span class="icon iconfont icon-xunjian1"></span>
  498. <div class="name">
  499. 巡检2
  500. </div>
  501. <div class="code-name">.icon-xunjian1
  502. </div>
  503. </li>
  504. <li class="dib">
  505. <span class="icon iconfont icon-xunjian2"></span>
  506. <div class="name">
  507. 巡检
  508. </div>
  509. <div class="code-name">.icon-xunjian2
  510. </div>
  511. </li>
  512. <li class="dib">
  513. <span class="icon iconfont icon-yinyong"></span>
  514. <div class="name">
  515. 引用
  516. </div>
  517. <div class="code-name">.icon-yinyong
  518. </div>
  519. </li>
  520. </ul>
  521. <div class="article markdown">
  522. <h2 id="font-class-">font-class 引用</h2>
  523. <hr>
  524. <p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p>
  525. <p>与 Unicode 使用方式相比,具有如下特点:</p>
  526. <ul>
  527. <li>兼容性良好,支持 IE8+,及所有现代浏览器。</li>
  528. <li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li>
  529. <li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li>
  530. <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
  531. </ul>
  532. <p>使用步骤如下:</p>
  533. <h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3>
  534. <pre><code class="language-html">&lt;link rel="stylesheet" href="./iconfont.css"&gt;
  535. </code></pre>
  536. <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
  537. <pre><code class="language-html">&lt;span class="iconfont icon-xxx"&gt;&lt;/span&gt;
  538. </code></pre>
  539. <blockquote>
  540. <p>"
  541. iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
  542. </blockquote>
  543. </div>
  544. </div>
  545. <div class="content symbol">
  546. <ul class="icon_lists dib-box">
  547. <li class="dib">
  548. <svg class="icon svg-icon" aria-hidden="true">
  549. <use xlink:href="#icon-zhengchang"></use>
  550. </svg>
  551. <div class="name">正常</div>
  552. <div class="code-name">#icon-zhengchang</div>
  553. </li>
  554. <li class="dib">
  555. <svg class="icon svg-icon" aria-hidden="true">
  556. <use xlink:href="#icon-yiyuqi"></use>
  557. </svg>
  558. <div class="name">已逾期</div>
  559. <div class="code-name">#icon-yiyuqi</div>
  560. </li>
  561. <li class="dib">
  562. <svg class="icon svg-icon" aria-hidden="true">
  563. <use xlink:href="#icon-cuowu"></use>
  564. </svg>
  565. <div class="name">错误</div>
  566. <div class="code-name">#icon-cuowu</div>
  567. </li>
  568. <li class="dib">
  569. <svg class="icon svg-icon" aria-hidden="true">
  570. <use xlink:href="#icon-pingfen-copy"></use>
  571. </svg>
  572. <div class="name">评分</div>
  573. <div class="code-name">#icon-pingfen-copy</div>
  574. </li>
  575. <li class="dib">
  576. <svg class="icon svg-icon" aria-hidden="true">
  577. <use xlink:href="#icon-baoxiuliebiao"></use>
  578. </svg>
  579. <div class="name">报修列表</div>
  580. <div class="code-name">#icon-baoxiuliebiao</div>
  581. </li>
  582. <li class="dib">
  583. <svg class="icon svg-icon" aria-hidden="true">
  584. <use xlink:href="#icon-changjianwenti1"></use>
  585. </svg>
  586. <div class="name">常见问题</div>
  587. <div class="code-name">#icon-changjianwenti1</div>
  588. </li>
  589. <li class="dib">
  590. <svg class="icon svg-icon" aria-hidden="true">
  591. <use xlink:href="#icon-icon_zhengzaijinx"></use>
  592. </svg>
  593. <div class="name">icon_zhengzaijinx</div>
  594. <div class="code-name">#icon-icon_zhengzaijinx</div>
  595. </li>
  596. <li class="dib">
  597. <svg class="icon svg-icon" aria-hidden="true">
  598. <use xlink:href="#icon-icon_weizuo"></use>
  599. </svg>
  600. <div class="name">icon_weizuo</div>
  601. <div class="code-name">#icon-icon_weizuo</div>
  602. </li>
  603. <li class="dib">
  604. <svg class="icon svg-icon" aria-hidden="true">
  605. <use xlink:href="#icon-jijiang"></use>
  606. </svg>
  607. <div class="name">即将</div>
  608. <div class="code-name">#icon-jijiang</div>
  609. </li>
  610. <li class="dib">
  611. <svg class="icon svg-icon" aria-hidden="true">
  612. <use xlink:href="#icon-moren"></use>
  613. </svg>
  614. <div class="name">默认</div>
  615. <div class="code-name">#icon-moren</div>
  616. </li>
  617. <li class="dib">
  618. <svg class="icon svg-icon" aria-hidden="true">
  619. <use xlink:href="#icon-xinjian"></use>
  620. </svg>
  621. <div class="name">新建 (1)</div>
  622. <div class="code-name">#icon-xinjian</div>
  623. </li>
  624. <li class="dib">
  625. <svg class="icon svg-icon" aria-hidden="true">
  626. <use xlink:href="#icon-changjianwenti"></use>
  627. </svg>
  628. <div class="name">常见问题 (2)</div>
  629. <div class="code-name">#icon-changjianwenti</div>
  630. </li>
  631. <li class="dib">
  632. <svg class="icon svg-icon" aria-hidden="true">
  633. <use xlink:href="#icon-fuwuzhinan"></use>
  634. </svg>
  635. <div class="name">服务指南</div>
  636. <div class="code-name">#icon-fuwuzhinan</div>
  637. </li>
  638. <li class="dib">
  639. <svg class="icon svg-icon" aria-hidden="true">
  640. <use xlink:href="#icon-baoxiumian"></use>
  641. </svg>
  642. <div class="name">报修面</div>
  643. <div class="code-name">#icon-baoxiumian</div>
  644. </li>
  645. <li class="dib">
  646. <svg class="icon svg-icon" aria-hidden="true">
  647. <use xlink:href="#icon-baoxiuxian"></use>
  648. </svg>
  649. <div class="name">报修线</div>
  650. <div class="code-name">#icon-baoxiuxian</div>
  651. </li>
  652. <li class="dib">
  653. <svg class="icon svg-icon" aria-hidden="true">
  654. <use xlink:href="#icon-bushouli"></use>
  655. </svg>
  656. <div class="name">不受理</div>
  657. <div class="code-name">#icon-bushouli</div>
  658. </li>
  659. <li class="dib">
  660. <svg class="icon svg-icon" aria-hidden="true">
  661. <use xlink:href="#icon-chulizhong"></use>
  662. </svg>
  663. <div class="name">处理中</div>
  664. <div class="code-name">#icon-chulizhong</div>
  665. </li>
  666. <li class="dib">
  667. <svg class="icon svg-icon" aria-hidden="true">
  668. <use xlink:href="#icon-daipingjia"></use>
  669. </svg>
  670. <div class="name">待评价</div>
  671. <div class="code-name">#icon-daipingjia</div>
  672. </li>
  673. <li class="dib">
  674. <svg class="icon svg-icon" aria-hidden="true">
  675. <use xlink:href="#icon-shanchu"></use>
  676. </svg>
  677. <div class="name">删除</div>
  678. <div class="code-name">#icon-shanchu</div>
  679. </li>
  680. <li class="dib">
  681. <svg class="icon svg-icon" aria-hidden="true">
  682. <use xlink:href="#icon-dianzan"></use>
  683. </svg>
  684. <div class="name">点赞</div>
  685. <div class="code-name">#icon-dianzan</div>
  686. </li>
  687. <li class="dib">
  688. <svg class="icon svg-icon" aria-hidden="true">
  689. <use xlink:href="#icon-shouji"></use>
  690. </svg>
  691. <div class="name">手机</div>
  692. <div class="code-name">#icon-shouji</div>
  693. </li>
  694. <li class="dib">
  695. <svg class="icon svg-icon" aria-hidden="true">
  696. <use xlink:href="#icon-daishouli"></use>
  697. </svg>
  698. <div class="name">待受理</div>
  699. <div class="code-name">#icon-daishouli</div>
  700. </li>
  701. <li class="dib">
  702. <svg class="icon svg-icon" aria-hidden="true">
  703. <use xlink:href="#icon-shouyemian"></use>
  704. </svg>
  705. <div class="name">首页面</div>
  706. <div class="code-name">#icon-shouyemian</div>
  707. </li>
  708. <li class="dib">
  709. <svg class="icon svg-icon" aria-hidden="true">
  710. <use xlink:href="#icon-shouyexian"></use>
  711. </svg>
  712. <div class="name">首页线</div>
  713. <div class="code-name">#icon-shouyexian</div>
  714. </li>
  715. <li class="dib">
  716. <svg class="icon svg-icon" aria-hidden="true">
  717. <use xlink:href="#icon-wodemian"></use>
  718. </svg>
  719. <div class="name">我的面</div>
  720. <div class="code-name">#icon-wodemian</div>
  721. </li>
  722. <li class="dib">
  723. <svg class="icon svg-icon" aria-hidden="true">
  724. <use xlink:href="#icon-wodexian"></use>
  725. </svg>
  726. <div class="name">我的线</div>
  727. <div class="code-name">#icon-wodexian</div>
  728. </li>
  729. <li class="dib">
  730. <svg class="icon svg-icon" aria-hidden="true">
  731. <use xlink:href="#icon-zuixinbaoxiu"></use>
  732. </svg>
  733. <div class="name">最新报修</div>
  734. <div class="code-name">#icon-zuixinbaoxiu</div>
  735. </li>
  736. <li class="dib">
  737. <svg class="icon svg-icon" aria-hidden="true">
  738. <use xlink:href="#icon-yichehui"></use>
  739. </svg>
  740. <div class="name">已撤回</div>
  741. <div class="code-name">#icon-yichehui</div>
  742. </li>
  743. <li class="dib">
  744. <svg class="icon svg-icon" aria-hidden="true">
  745. <use xlink:href="#icon-message"></use>
  746. </svg>
  747. <div class="name">message</div>
  748. <div class="code-name">#icon-message</div>
  749. </li>
  750. <li class="dib">
  751. <svg class="icon svg-icon" aria-hidden="true">
  752. <use xlink:href="#icon-yijiejue"></use>
  753. </svg>
  754. <div class="name">已解决</div>
  755. <div class="code-name">#icon-yijiejue</div>
  756. </li>
  757. <li class="dib">
  758. <svg class="icon svg-icon" aria-hidden="true">
  759. <use xlink:href="#icon-xunjian"></use>
  760. </svg>
  761. <div class="name">巡检</div>
  762. <div class="code-name">#icon-xunjian</div>
  763. </li>
  764. <li class="dib">
  765. <svg class="icon svg-icon" aria-hidden="true">
  766. <use xlink:href="#icon-xunjian1"></use>
  767. </svg>
  768. <div class="name">巡检2</div>
  769. <div class="code-name">#icon-xunjian1</div>
  770. </li>
  771. <li class="dib">
  772. <svg class="icon svg-icon" aria-hidden="true">
  773. <use xlink:href="#icon-xunjian2"></use>
  774. </svg>
  775. <div class="name">巡检</div>
  776. <div class="code-name">#icon-xunjian2</div>
  777. </li>
  778. <li class="dib">
  779. <svg class="icon svg-icon" aria-hidden="true">
  780. <use xlink:href="#icon-yinyong"></use>
  781. </svg>
  782. <div class="name">引用</div>
  783. <div class="code-name">#icon-yinyong</div>
  784. </li>
  785. </ul>
  786. <div class="article markdown">
  787. <h2 id="symbol-">Symbol 引用</h2>
  788. <hr>
  789. <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
  790. 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p>
  791. <ul>
  792. <li>支持多色图标了,不再受单色限制。</li>
  793. <li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li>
  794. <li>兼容性较差,支持 IE9+,及现代浏览器。</li>
  795. <li>浏览器渲染 SVG 的性能一般,还不如 png。</li>
  796. </ul>
  797. <p>使用步骤如下:</p>
  798. <h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3>
  799. <pre><code class="language-html">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;
  800. </code></pre>
  801. <h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3>
  802. <pre><code class="language-html">&lt;style&gt;
  803. .icon {
  804. width: 1em;
  805. height: 1em;
  806. vertical-align: -0.15em;
  807. fill: currentColor;
  808. overflow: hidden;
  809. }
  810. &lt;/style&gt;
  811. </code></pre>
  812. <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
  813. <pre><code class="language-html">&lt;svg class="icon" aria-hidden="true"&gt;
  814. &lt;use xlink:href="#icon-xxx"&gt;&lt;/use&gt;
  815. &lt;/svg&gt;
  816. </code></pre>
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. <script>
  822. $(document).ready(function () {
  823. $('.tab-container .content:first').show()
  824. $('#tabs li').click(function (e) {
  825. var tabContent = $('.tab-container .content')
  826. var index = $(this).index()
  827. if ($(this).hasClass('active')) {
  828. return
  829. } else {
  830. $('#tabs li').removeClass('active')
  831. $(this).addClass('active')
  832. tabContent.hide().eq(index).fadeIn()
  833. }
  834. })
  835. })
  836. </script>
  837. </body>
  838. </html>