demo_fontclass.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>IconFont</title>
  6. <link rel="stylesheet" href="demo.css">
  7. <link rel="stylesheet" href="iconfont.css">
  8. </head>
  9. <body>
  10. <div class="main markdown">
  11. <h1>IconFont 图标</h1>
  12. <ul class="icon_lists clear">
  13. <li>
  14. <i class="icon iconfont dsit-weixiubaoyang"></i>
  15. <div class="name">维修保养</div>
  16. <div class="fontclass">.dsit-weixiubaoyang</div>
  17. </li>
  18. <li>
  19. <i class="icon iconfont dsit-gonggao"></i>
  20. <div class="name">公告</div>
  21. <div class="fontclass">.dsit-gonggao</div>
  22. </li>
  23. <li>
  24. <i class="icon iconfont dsit-liebiao1"></i>
  25. <div class="name">列表</div>
  26. <div class="fontclass">.dsit-liebiao1</div>
  27. </li>
  28. <li>
  29. <i class="icon iconfont dsit-woyaobaoxiu"></i>
  30. <div class="name">我要报修</div>
  31. <div class="fontclass">.dsit-woyaobaoxiu</div>
  32. </li>
  33. <li>
  34. <i class="icon iconfont dsit-gonggao1"></i>
  35. <div class="name">公告</div>
  36. <div class="fontclass">.dsit-gonggao1</div>
  37. </li>
  38. <li>
  39. <i class="icon iconfont dsit-question"></i>
  40. <div class="name">问题</div>
  41. <div class="fontclass">.dsit-question</div>
  42. </li>
  43. <li>
  44. <i class="icon iconfont dsit-tianjia"></i>
  45. <div class="name">添加</div>
  46. <div class="fontclass">.dsit-tianjia</div>
  47. </li>
  48. <li>
  49. <i class="icon iconfont dsit-xinjian"></i>
  50. <div class="name">新建</div>
  51. <div class="fontclass">.dsit-xinjian</div>
  52. </li>
  53. <li>
  54. <i class="icon iconfont dsit-xiangzuo"></i>
  55. <div class="name">向左</div>
  56. <div class="fontclass">.dsit-xiangzuo</div>
  57. </li>
  58. <li>
  59. <i class="icon iconfont dsit-zhuti"></i>
  60. <div class="name">主题</div>
  61. <div class="fontclass">.dsit-zhuti</div>
  62. </li>
  63. <li>
  64. <i class="icon iconfont dsit-shouye"></i>
  65. <div class="name">首页</div>
  66. <div class="fontclass">.dsit-shouye</div>
  67. </li>
  68. <li>
  69. <i class="icon iconfont dsit-false-circle"></i>
  70. <div class="name">错</div>
  71. <div class="fontclass">.dsit-false-circle</div>
  72. </li>
  73. <li>
  74. <i class="icon iconfont dsit-wode"></i>
  75. <div class="name">我的</div>
  76. <div class="fontclass">.dsit-wode</div>
  77. </li>
  78. <li>
  79. <i class="icon iconfont dsit-gengduo"></i>
  80. <div class="name">更多</div>
  81. <div class="fontclass">.dsit-gengduo</div>
  82. </li>
  83. <li>
  84. <i class="icon iconfont dsit-icon-text-newlybuild"></i>
  85. <div class="name">新建</div>
  86. <div class="fontclass">.dsit-icon-text-newlybuild</div>
  87. </li>
  88. <li>
  89. <i class="icon iconfont dsit-baoxiushenqing"></i>
  90. <div class="name">保修申请</div>
  91. <div class="fontclass">.dsit-baoxiushenqing</div>
  92. </li>
  93. <li>
  94. <i class="icon iconfont dsit-xunjian"></i>
  95. <div class="name">巡检</div>
  96. <div class="fontclass">.dsit-xunjian</div>
  97. </li>
  98. <li>
  99. <i class="icon iconfont dsit-daishouli"></i>
  100. <div class="name">待受理3</div>
  101. <div class="fontclass">.dsit-daishouli</div>
  102. </li>
  103. <li>
  104. <i class="icon iconfont dsit-shoulizhong"></i>
  105. <div class="name">受理中1</div>
  106. <div class="fontclass">.dsit-shoulizhong</div>
  107. </li>
  108. <li>
  109. <i class="icon iconfont dsit-shouliwancheng"></i>
  110. <div class="name">受理完成</div>
  111. <div class="fontclass">.dsit-shouliwancheng</div>
  112. </li>
  113. <li>
  114. <i class="icon iconfont dsit-chakan"></i>
  115. <div class="name">查看</div>
  116. <div class="fontclass">.dsit-chakan</div>
  117. </li>
  118. <li>
  119. <i class="icon iconfont dsit-shenhe"></i>
  120. <div class="name">审核</div>
  121. <div class="fontclass">.dsit-shenhe</div>
  122. </li>
  123. <li>
  124. <i class="icon iconfont dsit-bianji1"></i>
  125. <div class="name">编辑</div>
  126. <div class="fontclass">.dsit-bianji1</div>
  127. </li>
  128. <li>
  129. <i class="icon iconfont dsit-daiwochulide"></i>
  130. <div class="name">待我处理的-工单</div>
  131. <div class="fontclass">.dsit-daiwochulide</div>
  132. </li>
  133. <li>
  134. <i class="icon iconfont dsit-shebeixunjian"></i>
  135. <div class="name">设备巡检</div>
  136. <div class="fontclass">.dsit-shebeixunjian</div>
  137. </li>
  138. <li>
  139. <i class="icon iconfont dsit-xinjiangongdan"></i>
  140. <div class="name">新建工单</div>
  141. <div class="fontclass">.dsit-xinjiangongdan</div>
  142. </li>
  143. <li>
  144. <i class="icon iconfont dsit-gongdanliebiao"></i>
  145. <div class="name">工单列表</div>
  146. <div class="fontclass">.dsit-gongdanliebiao</div>
  147. </li>
  148. <li>
  149. <i class="icon iconfont dsit-wenti"></i>
  150. <div class="name">问题</div>
  151. <div class="fontclass">.dsit-wenti</div>
  152. </li>
  153. <li>
  154. <i class="icon iconfont dsit-sousuo"></i>
  155. <div class="name">搜索</div>
  156. <div class="fontclass">.dsit-sousuo</div>
  157. </li>
  158. <li>
  159. <i class="icon iconfont dsit-morentouxiang"></i>
  160. <div class="name">默认头像</div>
  161. <div class="fontclass">.dsit-morentouxiang</div>
  162. </li>
  163. <li>
  164. <i class="icon iconfont dsit-fanhui"></i>
  165. <div class="name">返回</div>
  166. <div class="fontclass">.dsit-fanhui</div>
  167. </li>
  168. <li>
  169. <i class="icon iconfont dsit-bianji"></i>
  170. <div class="name">编辑</div>
  171. <div class="fontclass">.dsit-bianji</div>
  172. </li>
  173. <li>
  174. <i class="icon iconfont dsit-wode1"></i>
  175. <div class="name">我的</div>
  176. <div class="fontclass">.dsit-wode1</div>
  177. </li>
  178. <li>
  179. <i class="icon iconfont dsit-dui"></i>
  180. <div class="name">对</div>
  181. <div class="fontclass">.dsit-dui</div>
  182. </li>
  183. <li>
  184. <i class="icon iconfont dsit-guzhangbaojing"></i>
  185. <div class="name">故障报警</div>
  186. <div class="fontclass">.dsit-guzhangbaojing</div>
  187. </li>
  188. <li>
  189. <i class="icon iconfont dsit-yiji-fuwuguanli"></i>
  190. <div class="name">一级-服务管理</div>
  191. <div class="fontclass">.dsit-yiji-fuwuguanli</div>
  192. </li>
  193. <li>
  194. <i class="icon iconfont dsit-zhishiku2"></i>
  195. <div class="name">知识库</div>
  196. <div class="fontclass">.dsit-zhishiku2</div>
  197. </li>
  198. <li>
  199. <i class="icon iconfont dsit-yiyuqi"></i>
  200. <div class="name">已逾期</div>
  201. <div class="fontclass">.dsit-yiyuqi</div>
  202. </li>
  203. <li>
  204. <i class="icon iconfont dsit-jijiangyuqi"></i>
  205. <div class="name">即将逾期</div>
  206. <div class="fontclass">.dsit-jijiangyuqi</div>
  207. </li>
  208. <li>
  209. <i class="icon iconfont dsit-yuqi"></i>
  210. <div class="name">逾期</div>
  211. <div class="fontclass">.dsit-yuqi</div>
  212. </li>
  213. <li>
  214. <i class="icon iconfont dsit-mulu"></i>
  215. <div class="name">展开</div>
  216. <div class="fontclass">.dsit-mulu</div>
  217. </li>
  218. <li>
  219. <i class="icon iconfont dsit-xiangyou"></i>
  220. <div class="name">向右</div>
  221. <div class="fontclass">.dsit-xiangyou</div>
  222. </li>
  223. <li>
  224. <i class="icon iconfont dsit-paizhao"></i>
  225. <div class="name">C 拍照</div>
  226. <div class="fontclass">.dsit-paizhao</div>
  227. </li>
  228. <li>
  229. <i class="icon iconfont dsit-wode2"></i>
  230. <div class="name">我的</div>
  231. <div class="fontclass">.dsit-wode2</div>
  232. </li>
  233. <li>
  234. <i class="icon iconfont dsit-pingfen-copy"></i>
  235. <div class="name">评分</div>
  236. <div class="fontclass">.dsit-pingfen-copy</div>
  237. </li>
  238. <li>
  239. <i class="icon iconfont dsit-changjianwenti"></i>
  240. <div class="name">常见问题 (1)</div>
  241. <div class="fontclass">.dsit-changjianwenti</div>
  242. </li>
  243. <li>
  244. <i class="icon iconfont dsit-xinjian1"></i>
  245. <div class="name">新建 (1)</div>
  246. <div class="fontclass">.dsit-xinjian1</div>
  247. </li>
  248. <li>
  249. <i class="icon iconfont dsit-shouye-fuwuzhinan"></i>
  250. <div class="name">首页-服务指南</div>
  251. <div class="fontclass">.dsit-shouye-fuwuzhinan</div>
  252. </li>
  253. <li>
  254. <i class="icon iconfont dsit-gonggaotianchong"></i>
  255. <div class="name">公告填充</div>
  256. <div class="fontclass">.dsit-gonggaotianchong</div>
  257. </li>
  258. <li>
  259. <i class="icon iconfont dsit-baoxiuliebiao"></i>
  260. <div class="name">报修列表</div>
  261. <div class="fontclass">.dsit-baoxiuliebiao</div>
  262. </li>
  263. <li>
  264. <i class="icon iconfont dsit-shouji"></i>
  265. <div class="name">手机</div>
  266. <div class="fontclass">.dsit-shouji</div>
  267. </li>
  268. <li>
  269. <i class="icon iconfont dsit-changjianwenti1"></i>
  270. <div class="name">常见问题</div>
  271. <div class="fontclass">.dsit-changjianwenti1</div>
  272. </li>
  273. <li>
  274. <i class="icon iconfont dsit-ic"></i>
  275. <div class="name">首页</div>
  276. <div class="fontclass">.dsit-ic</div>
  277. </li>
  278. <li>
  279. <i class="icon iconfont dsit-icon_liucheng"></i>
  280. <div class="name">icon_liucheng</div>
  281. <div class="fontclass">.dsit-icon_liucheng</div>
  282. </li>
  283. <li>
  284. <i class="icon iconfont dsit-icon_zhengzaijinx"></i>
  285. <div class="name">icon_zhengzaijinx</div>
  286. <div class="fontclass">.dsit-icon_zhengzaijinx</div>
  287. </li>
  288. <li>
  289. <i class="icon iconfont dsit-icon_weizuo"></i>
  290. <div class="name">icon_weizuo</div>
  291. <div class="fontclass">.dsit-icon_weizuo</div>
  292. </li>
  293. <li>
  294. <i class="icon iconfont dsit-icon-test"></i>
  295. <div class="name">8</div>
  296. <div class="fontclass">.dsit-icon-test</div>
  297. </li>
  298. <li>
  299. <i class="icon iconfont dsit-icon-test1"></i>
  300. <div class="name">9</div>
  301. <div class="fontclass">.dsit-icon-test1</div>
  302. </li>
  303. <li>
  304. <i class="icon iconfont dsit-icon-test2"></i>
  305. <div class="name">7</div>
  306. <div class="fontclass">.dsit-icon-test2</div>
  307. </li>
  308. <li>
  309. <i class="icon iconfont dsit-icon-test3"></i>
  310. <div class="name">8</div>
  311. <div class="fontclass">.dsit-icon-test3</div>
  312. </li>
  313. <li>
  314. <i class="icon iconfont dsit-icon-test4"></i>
  315. <div class="name">4</div>
  316. <div class="fontclass">.dsit-icon-test4</div>
  317. </li>
  318. <li>
  319. <i class="icon iconfont dsit-icon-test5"></i>
  320. <div class="name">6</div>
  321. <div class="fontclass">.dsit-icon-test5</div>
  322. </li>
  323. <li>
  324. <i class="icon iconfont dsit-icon-test6"></i>
  325. <div class="name">5</div>
  326. <div class="fontclass">.dsit-icon-test6</div>
  327. </li>
  328. <li>
  329. <i class="icon iconfont dsit-icon-test7"></i>
  330. <div class="name">2</div>
  331. <div class="fontclass">.dsit-icon-test7</div>
  332. </li>
  333. <li>
  334. <i class="icon iconfont dsit-icon-test8"></i>
  335. <div class="name">3</div>
  336. <div class="fontclass">.dsit-icon-test8</div>
  337. </li>
  338. <li>
  339. <i class="icon iconfont dsit-Shape"></i>
  340. <div class="name">Shape</div>
  341. <div class="fontclass">.dsit-Shape</div>
  342. </li>
  343. <li>
  344. <i class="icon iconfont dsit-icon-test9"></i>
  345. <div class="name">10</div>
  346. <div class="fontclass">.dsit-icon-test9</div>
  347. </li>
  348. </ul>
  349. <h2 id="font-class-">font-class引用</h2>
  350. <hr>
  351. <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
  352. <p>与unicode使用方式相比,具有如下特点:</p>
  353. <ul>
  354. <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
  355. <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
  356. <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
  357. <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
  358. </ul>
  359. <p>使用步骤如下:</p>
  360. <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
  361. <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
  362. <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
  363. <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">dsit-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
  364. <blockquote>
  365. <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
  366. </blockquote>
  367. </div>
  368. </body>
  369. </html>