demo_fontclass.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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-tongjifenxi"></i>
  15. <div class="name">统计分析</div>
  16. <div class="fontclass">.icon-tongjifenxi</div>
  17. </li>
  18. <li>
  19. <i class="icon iconfont icon-xiazai"></i>
  20. <div class="name">下载</div>
  21. <div class="fontclass">.icon-xiazai</div>
  22. </li>
  23. <li>
  24. <i class="icon iconfont icon-baoming"></i>
  25. <div class="name">报名</div>
  26. <div class="fontclass">.icon-baoming</div>
  27. </li>
  28. <li>
  29. <i class="icon iconfont icon-tubiao209"></i>
  30. <div class="name">邮箱</div>
  31. <div class="fontclass">.icon-tubiao209</div>
  32. </li>
  33. <li>
  34. <i class="icon iconfont icon-dianhua"></i>
  35. <div class="name">电话</div>
  36. <div class="fontclass">.icon-dianhua</div>
  37. </li>
  38. <li>
  39. <i class="icon iconfont icon-renqun"></i>
  40. <div class="name">人群</div>
  41. <div class="fontclass">.icon-renqun</div>
  42. </li>
  43. <li>
  44. <i class="icon iconfont icon-xinjianwendang"></i>
  45. <div class="name">新建文档</div>
  46. <div class="fontclass">.icon-xinjianwendang</div>
  47. </li>
  48. <li>
  49. <i class="icon iconfont icon-qian"></i>
  50. <div class="name">钱</div>
  51. <div class="fontclass">.icon-qian</div>
  52. </li>
  53. <li>
  54. <i class="icon iconfont icon-xiaolianmanyifuwu"></i>
  55. <div class="name">笑脸 满意 服务</div>
  56. <div class="fontclass">.icon-xiaolianmanyifuwu</div>
  57. </li>
  58. <li>
  59. <i class="icon iconfont icon-jiantouxiajiang"></i>
  60. <div class="name">箭头 下降</div>
  61. <div class="fontclass">.icon-jiantouxiajiang</div>
  62. </li>
  63. <li>
  64. <i class="icon iconfont icon-xiangmushenbao"></i>
  65. <div class="name">项目申报</div>
  66. <div class="fontclass">.icon-xiangmushenbao</div>
  67. </li>
  68. <li>
  69. <i class="icon iconfont icon-ai-connection"></i>
  70. <div class="name">人脉</div>
  71. <div class="fontclass">.icon-ai-connection</div>
  72. </li>
  73. <li>
  74. <i class="icon iconfont icon-gonggao"></i>
  75. <div class="name">公告</div>
  76. <div class="fontclass">.icon-gonggao</div>
  77. </li>
  78. <li>
  79. <i class="icon iconfont icon-jiantou24"></i>
  80. <div class="name">箭头2-4</div>
  81. <div class="fontclass">.icon-jiantou24</div>
  82. </li>
  83. <li>
  84. <i class="icon iconfont icon-jiantoushang"></i>
  85. <div class="name">箭头_上</div>
  86. <div class="fontclass">.icon-jiantoushang</div>
  87. </li>
  88. <li>
  89. <i class="icon iconfont icon-suo"></i>
  90. <div class="name">锁</div>
  91. <div class="fontclass">.icon-suo</div>
  92. </li>
  93. <li>
  94. <i class="icon iconfont icon-jiaoyixingneng"></i>
  95. <div class="name">交易性能</div>
  96. <div class="fontclass">.icon-jiaoyixingneng</div>
  97. </li>
  98. <li>
  99. <i class="icon iconfont icon-jianjie"></i>
  100. <div class="name">简介</div>
  101. <div class="fontclass">.icon-jianjie</div>
  102. </li>
  103. <li>
  104. <i class="icon iconfont icon-iconfontanquan"></i>
  105. <div class="name">安全</div>
  106. <div class="fontclass">.icon-iconfontanquan</div>
  107. </li>
  108. <li>
  109. <i class="icon iconfont icon-iconfontpaixingbang"></i>
  110. <div class="name">数据</div>
  111. <div class="fontclass">.icon-iconfontpaixingbang</div>
  112. </li>
  113. <li>
  114. <i class="icon iconfont icon-youxiang"></i>
  115. <div class="name">邮箱</div>
  116. <div class="fontclass">.icon-youxiang</div>
  117. </li>
  118. <li>
  119. <i class="icon iconfont icon-zhuce"></i>
  120. <div class="name">注册</div>
  121. <div class="fontclass">.icon-zhuce</div>
  122. </li>
  123. <li>
  124. <i class="icon iconfont icon-zhengzaizhaobiao"></i>
  125. <div class="name">开标</div>
  126. <div class="fontclass">.icon-zhengzaizhaobiao</div>
  127. </li>
  128. <li>
  129. <i class="icon iconfont icon-map"></i>
  130. <div class="name">map</div>
  131. <div class="fontclass">.icon-map</div>
  132. </li>
  133. <li>
  134. <i class="icon iconfont icon-liucheng"></i>
  135. <div class="name">流程</div>
  136. <div class="fontclass">.icon-liucheng</div>
  137. </li>
  138. <li>
  139. <i class="icon iconfont icon-fangdajing"></i>
  140. <div class="name">放大镜</div>
  141. <div class="fontclass">.icon-fangdajing</div>
  142. </li>
  143. <li>
  144. <i class="icon iconfont icon-dianhua1"></i>
  145. <div class="name">电话</div>
  146. <div class="fontclass">.icon-dianhua1</div>
  147. </li>
  148. <li>
  149. <i class="icon iconfont icon-erweima"></i>
  150. <div class="name">二维码</div>
  151. <div class="fontclass">.icon-erweima</div>
  152. </li>
  153. <li>
  154. <i class="icon iconfont icon-tesezhuanti"></i>
  155. <div class="name">特色专题</div>
  156. <div class="fontclass">.icon-tesezhuanti</div>
  157. </li>
  158. <li>
  159. <i class="icon iconfont icon-hezuo-tianchong"></i>
  160. <div class="name">合作</div>
  161. <div class="fontclass">.icon-hezuo-tianchong</div>
  162. </li>
  163. <li>
  164. <i class="icon iconfont icon-kuaijiebiaoqian"></i>
  165. <div class="name">快捷标签</div>
  166. <div class="fontclass">.icon-kuaijiebiaoqian</div>
  167. </li>
  168. <li>
  169. <i class="icon iconfont icon-service"></i>
  170. <div class="name">客服</div>
  171. <div class="fontclass">.icon-service</div>
  172. </li>
  173. <li>
  174. <i class="icon iconfont icon-tianping"></i>
  175. <div class="name">天平</div>
  176. <div class="fontclass">.icon-tianping</div>
  177. </li>
  178. <li>
  179. <i class="icon iconfont icon-underway"></i>
  180. <div class="name">进行时钟</div>
  181. <div class="fontclass">.icon-underway</div>
  182. </li>
  183. <li>
  184. <i class="icon iconfont icon-toumingdutiaojie"></i>
  185. <div class="name">透明度调节</div>
  186. <div class="fontclass">.icon-toumingdutiaojie</div>
  187. </li>
  188. <li>
  189. <i class="icon iconfont icon-yanjiuchuangxinnengli"></i>
  190. <div class="name">研究创新能力</div>
  191. <div class="fontclass">.icon-yanjiuchuangxinnengli</div>
  192. </li>
  193. <li>
  194. <i class="icon iconfont icon-shujuanquan"></i>
  195. <div class="name">数据安全</div>
  196. <div class="fontclass">.icon-shujuanquan</div>
  197. </li>
  198. <li>
  199. <i class="icon iconfont icon-suosou"></i>
  200. <div class="name">搜索</div>
  201. <div class="fontclass">.icon-suosou</div>
  202. </li>
  203. <li>
  204. <i class="icon iconfont icon-baomingchenggong"></i>
  205. <div class="name">报名成功</div>
  206. <div class="fontclass">.icon-baomingchenggong</div>
  207. </li>
  208. </ul>
  209. <h2 id="font-class-">font-class引用</h2>
  210. <hr>
  211. <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
  212. <p>与unicode使用方式相比,具有如下特点:</p>
  213. <ul>
  214. <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
  215. <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
  216. <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
  217. <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
  218. </ul>
  219. <p>使用步骤如下:</p>
  220. <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
  221. <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>
  222. <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
  223. <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>
  224. <blockquote>
  225. <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
  226. </blockquote>
  227. </div>
  228. </body>
  229. </html>