demo_fontclass.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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 icon-tuan"></i>
  15. <div class="name">团</div>
  16. <div class="fontclass">.icon-tuan</div>
  17. </li>
  18. <li>
  19. <i class="icon iconfont icon-kafei"></i>
  20. <div class="name">咖啡</div>
  21. <div class="fontclass">.icon-kafei</div>
  22. </li>
  23. <li>
  24. <i class="icon iconfont icon-shequ"></i>
  25. <div class="name">社区</div>
  26. <div class="fontclass">.icon-shequ</div>
  27. </li>
  28. <li>
  29. <i class="icon iconfont icon-xiazai"></i>
  30. <div class="name">下载</div>
  31. <div class="fontclass">.icon-xiazai</div>
  32. </li>
  33. <li>
  34. <i class="icon iconfont icon-android"></i>
  35. <div class="name">android</div>
  36. <div class="fontclass">.icon-android</div>
  37. </li>
  38. <li>
  39. <i class="icon iconfont icon-shouji"></i>
  40. <div class="name">手机</div>
  41. <div class="fontclass">.icon-shouji</div>
  42. </li>
  43. <li>
  44. <i class="icon iconfont icon-dianhua"></i>
  45. <div class="name">电话</div>
  46. <div class="fontclass">.icon-dianhua</div>
  47. </li>
  48. <li>
  49. <i class="icon iconfont icon-dianhua2"></i>
  50. <div class="name">电话</div>
  51. <div class="fontclass">.icon-dianhua2</div>
  52. </li>
  53. <li>
  54. <i class="icon iconfont icon-kefu2"></i>
  55. <div class="name">客服</div>
  56. <div class="fontclass">.icon-kefu2</div>
  57. </li>
  58. <li>
  59. <i class="icon iconfont icon-xin"></i>
  60. <div class="name">心</div>
  61. <div class="fontclass">.icon-xin</div>
  62. </li>
  63. <li>
  64. <i class="icon iconfont icon-yaoqing"></i>
  65. <div class="name">邀请</div>
  66. <div class="fontclass">.icon-yaoqing</div>
  67. </li>
  68. <li>
  69. <i class="icon iconfont icon-goutong"></i>
  70. <div class="name">沟通</div>
  71. <div class="fontclass">.icon-goutong</div>
  72. </li>
  73. <li>
  74. <i class="icon iconfont icon-shubiao"></i>
  75. <div class="name">鼠标</div>
  76. <div class="fontclass">.icon-shubiao</div>
  77. </li>
  78. <li>
  79. <i class="icon iconfont icon-73316"></i>
  80. <div class="name">医疗</div>
  81. <div class="fontclass">.icon-73316</div>
  82. </li>
  83. <li>
  84. <i class="icon iconfont icon-yumingjiexi"></i>
  85. <div class="name">域名解析</div>
  86. <div class="fontclass">.icon-yumingjiexi</div>
  87. </li>
  88. <li>
  89. <i class="icon iconfont icon-xuchaobiaoqian"></i>
  90. <div class="name">别针</div>
  91. <div class="fontclass">.icon-xuchaobiaoqian</div>
  92. </li>
  93. <li>
  94. <i class="icon iconfont icon-mjiantou"></i>
  95. <div class="name">右箭头</div>
  96. <div class="fontclass">.icon-mjiantou</div>
  97. </li>
  98. <li>
  99. <i class="icon iconfont icon-app"></i>
  100. <div class="name">app</div>
  101. <div class="fontclass">.icon-app</div>
  102. </li>
  103. <li>
  104. <i class="icon iconfont icon-canyin"></i>
  105. <div class="name">餐饮</div>
  106. <div class="fontclass">.icon-canyin</div>
  107. </li>
  108. <li>
  109. <i class="icon iconfont icon-svgiconyouxi"></i>
  110. <div class="name">眼睛</div>
  111. <div class="fontclass">.icon-svgiconyouxi</div>
  112. </li>
  113. <li>
  114. <i class="icon iconfont icon-ios"></i>
  115. <div class="name">ios</div>
  116. <div class="fontclass">.icon-ios</div>
  117. </li>
  118. <li>
  119. <i class="icon iconfont icon-kaifa"></i>
  120. <div class="name">开发</div>
  121. <div class="fontclass">.icon-kaifa</div>
  122. </li>
  123. <li>
  124. <i class="icon iconfont icon-weixin"></i>
  125. <div class="name">微信</div>
  126. <div class="fontclass">.icon-weixin</div>
  127. </li>
  128. <li>
  129. <i class="icon iconfont icon-huojian"></i>
  130. <div class="name">1火箭</div>
  131. <div class="fontclass">.icon-huojian</div>
  132. </li>
  133. <li>
  134. <i class="icon iconfont icon-service"></i>
  135. <div class="name">服务</div>
  136. <div class="fontclass">.icon-service</div>
  137. </li>
  138. <li>
  139. <i class="icon iconfont icon-kaiqihuodong"></i>
  140. <div class="name">开启活动</div>
  141. <div class="fontclass">.icon-kaiqihuodong</div>
  142. </li>
  143. <li>
  144. <i class="icon iconfont icon-diannao1"></i>
  145. <div class="name">电脑</div>
  146. <div class="fontclass">.icon-diannao1</div>
  147. </li>
  148. <li>
  149. <i class="icon iconfont icon-o2o"></i>
  150. <div class="name">O2O</div>
  151. <div class="fontclass">.icon-o2o</div>
  152. </li>
  153. <li>
  154. <i class="icon iconfont icon-kaxinxi"></i>
  155. <div class="name">会员卡</div>
  156. <div class="fontclass">.icon-kaxinxi</div>
  157. </li>
  158. <li>
  159. <i class="icon iconfont icon-qiuhuixuanzhong"></i>
  160. <div class="name">球会选中</div>
  161. <div class="fontclass">.icon-qiuhuixuanzhong</div>
  162. </li>
  163. <li>
  164. <i class="icon iconfont icon-xianshang"></i>
  165. <div class="name">线上</div>
  166. <div class="fontclass">.icon-xianshang</div>
  167. </li>
  168. <li>
  169. <i class="icon iconfont icon-wifi"></i>
  170. <div class="name">wifi</div>
  171. <div class="fontclass">.icon-wifi</div>
  172. </li>
  173. <li>
  174. <i class="icon iconfont icon-lvyou"></i>
  175. <div class="name">旅游</div>
  176. <div class="fontclass">.icon-lvyou</div>
  177. </li>
  178. <li>
  179. <i class="icon iconfont icon-qq"></i>
  180. <div class="name">qq</div>
  181. <div class="fontclass">.icon-qq</div>
  182. </li>
  183. <li>
  184. <i class="icon iconfont icon-kefu1"></i>
  185. <div class="name">客服</div>
  186. <div class="fontclass">.icon-kefu1</div>
  187. </li>
  188. <li>
  189. <i class="icon iconfont icon-weihu"></i>
  190. <div class="name">维护</div>
  191. <div class="fontclass">.icon-weihu</div>
  192. </li>
  193. <li>
  194. <i class="icon iconfont icon-fene"></i>
  195. <div class="name">买入份额</div>
  196. <div class="fontclass">.icon-fene</div>
  197. </li>
  198. <li>
  199. <i class="icon iconfont icon-top"></i>
  200. <div class="name">返回顶部</div>
  201. <div class="fontclass">.icon-top</div>
  202. </li>
  203. <li>
  204. <i class="icon iconfont icon-xitong"></i>
  205. <div class="name">系统</div>
  206. <div class="fontclass">.icon-xitong</div>
  207. </li>
  208. <li>
  209. <i class="icon iconfont icon-menu"></i>
  210. <div class="name">菜单</div>
  211. <div class="fontclass">.icon-menu</div>
  212. </li>
  213. <li>
  214. <i class="icon iconfont icon-jianrongxing"></i>
  215. <div class="name">兼容性</div>
  216. <div class="fontclass">.icon-jianrongxing</div>
  217. </li>
  218. <li>
  219. <i class="icon iconfont icon-gengduo"></i>
  220. <div class="name">更多</div>
  221. <div class="fontclass">.icon-gengduo</div>
  222. </li>
  223. <li>
  224. <i class="icon iconfont icon-ui"></i>
  225. <div class="name">UI</div>
  226. <div class="fontclass">.icon-ui</div>
  227. </li>
  228. <li>
  229. <i class="icon iconfont icon-jhyxsj"></i>
  230. <div class="name">交互原型设计</div>
  231. <div class="fontclass">.icon-jhyxsj</div>
  232. </li>
  233. <li>
  234. <i class="icon iconfont icon-kefu"></i>
  235. <div class="name">客服</div>
  236. <div class="fontclass">.icon-kefu</div>
  237. </li>
  238. <li>
  239. <i class="icon iconfont icon-shangcheng"></i>
  240. <div class="name">商城</div>
  241. <div class="fontclass">.icon-shangcheng</div>
  242. </li>
  243. <li>
  244. <i class="icon iconfont icon-cuo"></i>
  245. <div class="name">错</div>
  246. <div class="fontclass">.icon-cuo</div>
  247. </li>
  248. <li>
  249. <i class="icon iconfont icon-taideng"></i>
  250. <div class="name">台灯</div>
  251. <div class="fontclass">.icon-taideng</div>
  252. </li>
  253. <li>
  254. <i class="icon iconfont icon-zhenghe"></i>
  255. <div class="name">iconfont整合-29</div>
  256. <div class="fontclass">.icon-zhenghe</div>
  257. </li>
  258. <li>
  259. <i class="icon iconfont icon-peixun"></i>
  260. <div class="name">培训 (1)</div>
  261. <div class="fontclass">.icon-peixun</div>
  262. </li>
  263. <li>
  264. <i class="icon iconfont icon-shangchuan"></i>
  265. <div class="name">上传</div>
  266. <div class="fontclass">.icon-shangchuan</div>
  267. </li>
  268. <li>
  269. <i class="icon iconfont icon-liaotian"></i>
  270. <div class="name">聊天</div>
  271. <div class="fontclass">.icon-liaotian</div>
  272. </li>
  273. <li>
  274. <i class="icon iconfont icon-xiangce"></i>
  275. <div class="name">相册</div>
  276. <div class="fontclass">.icon-xiangce</div>
  277. </li>
  278. <li>
  279. <i class="icon iconfont icon-xiangji"></i>
  280. <div class="name">相机</div>
  281. <div class="fontclass">.icon-xiangji</div>
  282. </li>
  283. <li>
  284. <i class="icon iconfont icon-shijuesheji"></i>
  285. <div class="name">视觉设计</div>
  286. <div class="fontclass">.icon-shijuesheji</div>
  287. </li>
  288. <li>
  289. <i class="icon iconfont icon-liucheng"></i>
  290. <div class="name">流程</div>
  291. <div class="fontclass">.icon-liucheng</div>
  292. </li>
  293. <li>
  294. <i class="icon iconfont icon-pintu"></i>
  295. <div class="name">拼图</div>
  296. <div class="fontclass">.icon-pintu</div>
  297. </li>
  298. <li>
  299. <i class="icon iconfont icon-xiazai1"></i>
  300. <div class="name">下载</div>
  301. <div class="fontclass">.icon-xiazai1</div>
  302. </li>
  303. <li>
  304. <i class="icon iconfont icon-shuju"></i>
  305. <div class="name">数据</div>
  306. <div class="fontclass">.icon-shuju</div>
  307. </li>
  308. <li>
  309. <i class="icon iconfont icon-sheji"></i>
  310. <div class="name">设计</div>
  311. <div class="fontclass">.icon-sheji</div>
  312. </li>
  313. <li>
  314. <i class="icon iconfont icon-yingxiaoxinxi"></i>
  315. <div class="name">营销信息</div>
  316. <div class="fontclass">.icon-yingxiaoxinxi</div>
  317. </li>
  318. <li>
  319. <i class="icon iconfont icon-qiche"></i>
  320. <div class="name">汽车</div>
  321. <div class="fontclass">.icon-qiche</div>
  322. </li>
  323. <li>
  324. <i class="icon iconfont icon-huizhang"></i>
  325. <div class="name">徽章</div>
  326. <div class="fontclass">.icon-huizhang</div>
  327. </li>
  328. <li>
  329. <i class="icon iconfont icon-huaban"></i>
  330. <div class="name">工具</div>
  331. <div class="fontclass">.icon-huaban</div>
  332. </li>
  333. <li>
  334. <i class="icon iconfont icon-xiangyouyo"></i>
  335. <div class="name">向右</div>
  336. <div class="fontclass">.icon-xiangyouyo</div>
  337. </li>
  338. <li>
  339. <i class="icon iconfont icon-shezhi"></i>
  340. <div class="name">设置</div>
  341. <div class="fontclass">.icon-shezhi</div>
  342. </li>
  343. <li>
  344. <i class="icon iconfont icon-dianhua1"></i>
  345. <div class="name">电话</div>
  346. <div class="fontclass">.icon-dianhua1</div>
  347. </li>
  348. <li>
  349. <i class="icon iconfont icon-yinhangqia"></i>
  350. <div class="name">银行卡</div>
  351. <div class="fontclass">.icon-yinhangqia</div>
  352. </li>
  353. <li>
  354. <i class="icon iconfont icon-diannao"></i>
  355. <div class="name">电脑</div>
  356. <div class="fontclass">.icon-diannao</div>
  357. </li>
  358. <li>
  359. <i class="icon iconfont icon-dianshang"></i>
  360. <div class="name">电商</div>
  361. <div class="fontclass">.icon-dianshang</div>
  362. </li>
  363. <li>
  364. <i class="icon iconfont icon-jinrong"></i>
  365. <div class="name">金融</div>
  366. <div class="fontclass">.icon-jinrong</div>
  367. </li>
  368. <li>
  369. <i class="icon iconfont icon-ziyuan"></i>
  370. <div class="name">合同</div>
  371. <div class="fontclass">.icon-ziyuan</div>
  372. </li>
  373. <li>
  374. <i class="icon iconfont icon-yanshou"></i>
  375. <div class="name">6收货验收</div>
  376. <div class="fontclass">.icon-yanshou</div>
  377. </li>
  378. <li>
  379. <i class="icon iconfont icon-yingyee"></i>
  380. <div class="name">累计营业额</div>
  381. <div class="fontclass">.icon-yingyee</div>
  382. </li>
  383. <li>
  384. <i class="icon iconfont icon-weixin1"></i>
  385. <div class="name">微信</div>
  386. <div class="fontclass">.icon-weixin1</div>
  387. </li>
  388. </ul>
  389. <h2 id="font-class-">font-class引用</h2>
  390. <hr>
  391. <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
  392. <p>与unicode使用方式相比,具有如下特点:</p>
  393. <ul>
  394. <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
  395. <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
  396. <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
  397. <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
  398. </ul>
  399. <p>使用步骤如下:</p>
  400. <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
  401. <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>
  402. <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
  403. <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">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
  404. <blockquote>
  405. <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
  406. </blockquote>
  407. </div>
  408. </body>
  409. </html>