sso

demo_unicode.html 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>IconFont</title>
  6. <link rel="stylesheet" href="demo.css">
  7. <style type="text/css">
  8. @font-face {font-family: "iconfont";
  9. src: url('iconfont.eot'); /* IE9*/
  10. src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
  11. url('iconfont.woff') format('woff'), /* chrome, firefox */
  12. url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  13. url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
  14. }
  15. .iconfont {
  16. font-family:"iconfont" !important;
  17. font-size:16px;
  18. font-style:normal;
  19. -webkit-font-smoothing: antialiased;
  20. -webkit-text-stroke-width: 0.2px;
  21. -moz-osx-font-smoothing: grayscale;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="main markdown">
  27. <h1>IconFont 图标</h1>
  28. <ul class="icon_lists clear">
  29. <li>
  30. <i class="icon iconfont">&#xe61d;</i>
  31. <div class="name">会员</div>
  32. <div class="code">&amp;#xe61d;</div>
  33. </li>
  34. <li>
  35. <i class="icon iconfont">&#xe60c;</i>
  36. <div class="name">健康 水滴</div>
  37. <div class="code">&amp;#xe60c;</div>
  38. </li>
  39. <li>
  40. <i class="icon iconfont">&#xe777;</i>
  41. <div class="name">报错</div>
  42. <div class="code">&amp;#xe777;</div>
  43. </li>
  44. <li>
  45. <i class="icon iconfont">&#xe8c9;</i>
  46. <div class="name">225默认头像</div>
  47. <div class="code">&amp;#xe8c9;</div>
  48. </li>
  49. <li>
  50. <i class="icon iconfont">&#xe6dd;</i>
  51. <div class="name">accessory</div>
  52. <div class="code">&amp;#xe6dd;</div>
  53. </li>
  54. <li>
  55. <i class="icon iconfont">&#xe6df;</i>
  56. <div class="name">add</div>
  57. <div class="code">&amp;#xe6df;</div>
  58. </li>
  59. <li>
  60. <i class="icon iconfont">&#xe6e1;</i>
  61. <div class="name">addition_fill</div>
  62. <div class="code">&amp;#xe6e1;</div>
  63. </li>
  64. <li>
  65. <i class="icon iconfont">&#xe6e0;</i>
  66. <div class="name">addition</div>
  67. <div class="code">&amp;#xe6e0;</div>
  68. </li>
  69. <li>
  70. <i class="icon iconfont">&#xe6e2;</i>
  71. <div class="name">addressbook_fill</div>
  72. <div class="code">&amp;#xe6e2;</div>
  73. </li>
  74. <li>
  75. <i class="icon iconfont">&#xe6e3;</i>
  76. <div class="name">addressbook</div>
  77. <div class="code">&amp;#xe6e3;</div>
  78. </li>
  79. <li>
  80. <i class="icon iconfont">&#xe6e4;</i>
  81. <div class="name">browse_fill</div>
  82. <div class="code">&amp;#xe6e4;</div>
  83. </li>
  84. <li>
  85. <i class="icon iconfont">&#xe6e5;</i>
  86. <div class="name">brush</div>
  87. <div class="code">&amp;#xe6e5;</div>
  88. </li>
  89. <li>
  90. <i class="icon iconfont">&#xe6e6;</i>
  91. <div class="name">brush_fill</div>
  92. <div class="code">&amp;#xe6e6;</div>
  93. </li>
  94. <li>
  95. <i class="icon iconfont">&#xe6eb;</i>
  96. <div class="name">computer_fill</div>
  97. <div class="code">&amp;#xe6eb;</div>
  98. </li>
  99. <li>
  100. <i class="icon iconfont">&#xe6ec;</i>
  101. <div class="name">computer</div>
  102. <div class="code">&amp;#xe6ec;</div>
  103. </li>
  104. <li>
  105. <i class="icon iconfont">&#xe6ed;</i>
  106. <div class="name">coordinates_fill</div>
  107. <div class="code">&amp;#xe6ed;</div>
  108. </li>
  109. <li>
  110. <i class="icon iconfont">&#xe6ee;</i>
  111. <div class="name">coordinates</div>
  112. <div class="code">&amp;#xe6ee;</div>
  113. </li>
  114. <li>
  115. <i class="icon iconfont">&#xe6ef;</i>
  116. <div class="name">coupons_fill</div>
  117. <div class="code">&amp;#xe6ef;</div>
  118. </li>
  119. <li>
  120. <i class="icon iconfont">&#xe6f0;</i>
  121. <div class="name">customerservice_fill</div>
  122. <div class="code">&amp;#xe6f0;</div>
  123. </li>
  124. <li>
  125. <i class="icon iconfont">&#xe6f1;</i>
  126. <div class="name">customerservice</div>
  127. <div class="code">&amp;#xe6f1;</div>
  128. </li>
  129. <li>
  130. <i class="icon iconfont">&#xe6f3;</i>
  131. <div class="name">document</div>
  132. <div class="code">&amp;#xe6f3;</div>
  133. </li>
  134. <li>
  135. <i class="icon iconfont">&#xe6f4;</i>
  136. <div class="name">document_fill</div>
  137. <div class="code">&amp;#xe6f4;</div>
  138. </li>
  139. <li>
  140. <i class="icon iconfont">&#xe6f6;</i>
  141. <div class="name">dynamic_fill</div>
  142. <div class="code">&amp;#xe6f6;</div>
  143. </li>
  144. <li>
  145. <i class="icon iconfont">&#xe6f5;</i>
  146. <div class="name">editor</div>
  147. <div class="code">&amp;#xe6f5;</div>
  148. </li>
  149. <li>
  150. <i class="icon iconfont">&#xe6f9;</i>
  151. <div class="name">emoji</div>
  152. <div class="code">&amp;#xe6f9;</div>
  153. </li>
  154. <li>
  155. <i class="icon iconfont">&#xe6f8;</i>
  156. <div class="name">enter</div>
  157. <div class="code">&amp;#xe6f8;</div>
  158. </li>
  159. <li>
  160. <i class="icon iconfont">&#xe6fb;</i>
  161. <div class="name">flag_fill</div>
  162. <div class="code">&amp;#xe6fb;</div>
  163. </li>
  164. <li>
  165. <i class="icon iconfont">&#xe6fc;</i>
  166. <div class="name">flag</div>
  167. <div class="code">&amp;#xe6fc;</div>
  168. </li>
  169. <li>
  170. <i class="icon iconfont">&#xe6ff;</i>
  171. <div class="name">group_fill</div>
  172. <div class="code">&amp;#xe6ff;</div>
  173. </li>
  174. <li>
  175. <i class="icon iconfont">&#xe700;</i>
  176. <div class="name">headlines_fill</div>
  177. <div class="code">&amp;#xe700;</div>
  178. </li>
  179. <li>
  180. <i class="icon iconfont">&#xe702;</i>
  181. <div class="name">homepage_fill</div>
  182. <div class="code">&amp;#xe702;</div>
  183. </li>
  184. <li>
  185. <i class="icon iconfont">&#xe703;</i>
  186. <div class="name">homepage</div>
  187. <div class="code">&amp;#xe703;</div>
  188. </li>
  189. <li>
  190. <i class="icon iconfont">&#xe704;</i>
  191. <div class="name">interactive_fill</div>
  192. <div class="code">&amp;#xe704;</div>
  193. </li>
  194. <li>
  195. <i class="icon iconfont">&#xe705;</i>
  196. <div class="name">interactive</div>
  197. <div class="code">&amp;#xe705;</div>
  198. </li>
  199. <li>
  200. <i class="icon iconfont">&#xe706;</i>
  201. <div class="name">label</div>
  202. <div class="code">&amp;#xe706;</div>
  203. </li>
  204. <li>
  205. <i class="icon iconfont">&#xe707;</i>
  206. <div class="name">like_fill</div>
  207. <div class="code">&amp;#xe707;</div>
  208. </li>
  209. <li>
  210. <i class="icon iconfont">&#xe708;</i>
  211. <div class="name">like</div>
  212. <div class="code">&amp;#xe708;</div>
  213. </li>
  214. <li>
  215. <i class="icon iconfont">&#xe709;</i>
  216. <div class="name">lock</div>
  217. <div class="code">&amp;#xe709;</div>
  218. </li>
  219. <li>
  220. <i class="icon iconfont">&#xe70a;</i>
  221. <div class="name">mail</div>
  222. <div class="code">&amp;#xe70a;</div>
  223. </li>
  224. <li>
  225. <i class="icon iconfont">&#xe70b;</i>
  226. <div class="name">manage</div>
  227. <div class="code">&amp;#xe70b;</div>
  228. </li>
  229. <li>
  230. <i class="icon iconfont">&#xe70c;</i>
  231. <div class="name">message</div>
  232. <div class="code">&amp;#xe70c;</div>
  233. </li>
  234. <li>
  235. <i class="icon iconfont">&#xe70e;</i>
  236. <div class="name">mine_fill</div>
  237. <div class="code">&amp;#xe70e;</div>
  238. </li>
  239. <li>
  240. <i class="icon iconfont">&#xe710;</i>
  241. <div class="name">mobilephone_fill</div>
  242. <div class="code">&amp;#xe710;</div>
  243. </li>
  244. <li>
  245. <i class="icon iconfont">&#xe70f;</i>
  246. <div class="name">mobilephone</div>
  247. <div class="code">&amp;#xe70f;</div>
  248. </li>
  249. <li>
  250. <i class="icon iconfont">&#xe712;</i>
  251. <div class="name">offline_fill</div>
  252. <div class="code">&amp;#xe712;</div>
  253. </li>
  254. <li>
  255. <i class="icon iconfont">&#xe713;</i>
  256. <div class="name">offline</div>
  257. <div class="code">&amp;#xe713;</div>
  258. </li>
  259. <li>
  260. <i class="icon iconfont">&#xe714;</i>
  261. <div class="name">order_fill</div>
  262. <div class="code">&amp;#xe714;</div>
  263. </li>
  264. <li>
  265. <i class="icon iconfont">&#xe715;</i>
  266. <div class="name">other</div>
  267. <div class="code">&amp;#xe715;</div>
  268. </li>
  269. <li>
  270. <i class="icon iconfont">&#xe716;</i>
  271. <div class="name">picture_fill</div>
  272. <div class="code">&amp;#xe716;</div>
  273. </li>
  274. <li>
  275. <i class="icon iconfont">&#xe71b;</i>
  276. <div class="name">prompt_fill</div>
  277. <div class="code">&amp;#xe71b;</div>
  278. </li>
  279. <li>
  280. <i class="icon iconfont">&#xe71c;</i>
  281. <div class="name">qrcode_fill</div>
  282. <div class="code">&amp;#xe71c;</div>
  283. </li>
  284. <li>
  285. <i class="icon iconfont">&#xe71f;</i>
  286. <div class="name">remind_fill</div>
  287. <div class="code">&amp;#xe71f;</div>
  288. </li>
  289. <li>
  290. <i class="icon iconfont">&#xe721;</i>
  291. <div class="name">remind</div>
  292. <div class="code">&amp;#xe721;</div>
  293. </li>
  294. <li>
  295. <i class="icon iconfont">&#xe720;</i>
  296. <div class="name">return</div>
  297. <div class="code">&amp;#xe720;</div>
  298. </li>
  299. <li>
  300. <i class="icon iconfont">&#xe727;</i>
  301. <div class="name">service_fill</div>
  302. <div class="code">&amp;#xe727;</div>
  303. </li>
  304. <li>
  305. <i class="icon iconfont">&#xe728;</i>
  306. <div class="name">service</div>
  307. <div class="code">&amp;#xe728;</div>
  308. </li>
  309. <li>
  310. <i class="icon iconfont">&#xe729;</i>
  311. <div class="name">setup_fill</div>
  312. <div class="code">&amp;#xe729;</div>
  313. </li>
  314. <li>
  315. <i class="icon iconfont">&#xe72a;</i>
  316. <div class="name">setup</div>
  317. <div class="code">&amp;#xe72a;</div>
  318. </li>
  319. <li>
  320. <i class="icon iconfont">&#xe72b;</i>
  321. <div class="name">smallscreen</div>
  322. <div class="code">&amp;#xe72b;</div>
  323. </li>
  324. <li>
  325. <i class="icon iconfont">&#xe72d;</i>
  326. <div class="name">success_fill</div>
  327. <div class="code">&amp;#xe72d;</div>
  328. </li>
  329. <li>
  330. <i class="icon iconfont">&#xe72e;</i>
  331. <div class="name">success</div>
  332. <div class="code">&amp;#xe72e;</div>
  333. </li>
  334. <li>
  335. <i class="icon iconfont">&#xe735;</i>
  336. <div class="name">time_fill</div>
  337. <div class="code">&amp;#xe735;</div>
  338. </li>
  339. <li>
  340. <i class="icon iconfont">&#xe738;</i>
  341. <div class="name">trash</div>
  342. <div class="code">&amp;#xe738;</div>
  343. </li>
  344. <li>
  345. <i class="icon iconfont">&#xe739;</i>
  346. <div class="name">trash_fill</div>
  347. <div class="code">&amp;#xe739;</div>
  348. </li>
  349. <li>
  350. <i class="icon iconfont">&#xe73a;</i>
  351. <div class="name">undo</div>
  352. <div class="code">&amp;#xe73a;</div>
  353. </li>
  354. <li>
  355. <i class="icon iconfont">&#xe73e;</i>
  356. <div class="name">workbench_fill</div>
  357. <div class="code">&amp;#xe73e;</div>
  358. </li>
  359. <li>
  360. <i class="icon iconfont">&#xe639;</i>
  361. <div class="name">导入</div>
  362. <div class="code">&amp;#xe639;</div>
  363. </li>
  364. <li>
  365. <i class="icon iconfont">&#xe741;</i>
  366. <div class="name">search</div>
  367. <div class="code">&amp;#xe741;</div>
  368. </li>
  369. <li>
  370. <i class="icon iconfont">&#xe749;</i>
  371. <div class="name">packup</div>
  372. <div class="code">&amp;#xe749;</div>
  373. </li>
  374. <li>
  375. <i class="icon iconfont">&#xe74a;</i>
  376. <div class="name">unfold</div>
  377. <div class="code">&amp;#xe74a;</div>
  378. </li>
  379. <li>
  380. <i class="icon iconfont">&#xe74b;</i>
  381. <div class="name">wangwang_fill</div>
  382. <div class="code">&amp;#xe74b;</div>
  383. </li>
  384. <li>
  385. <i class="icon iconfont">&#xe600;</i>
  386. <div class="name">验证码</div>
  387. <div class="code">&amp;#xe600;</div>
  388. </li>
  389. <li>
  390. <i class="icon iconfont">&#xe610;</i>
  391. <div class="name">报错-插画</div>
  392. <div class="code">&amp;#xe610;</div>
  393. </li>
  394. <li>
  395. <i class="icon iconfont">&#xe643;</i>
  396. <div class="name">朋友</div>
  397. <div class="code">&amp;#xe643;</div>
  398. </li>
  399. <li>
  400. <i class="icon iconfont">&#xe644;</i>
  401. <div class="name">所有</div>
  402. <div class="code">&amp;#xe644;</div>
  403. </li>
  404. <li>
  405. <i class="icon iconfont">&#xe645;</i>
  406. <div class="name">会员</div>
  407. <div class="code">&amp;#xe645;</div>
  408. </li>
  409. <li>
  410. <i class="icon iconfont">&#xe641;</i>
  411. <div class="name">会员</div>
  412. <div class="code">&amp;#xe641;</div>
  413. </li>
  414. <li>
  415. <i class="icon iconfont">&#xe637;</i>
  416. <div class="name">空页面</div>
  417. <div class="code">&amp;#xe637;</div>
  418. </li>
  419. <li>
  420. <i class="icon iconfont">&#xe78c;</i>
  421. <div class="name">logout</div>
  422. <div class="code">&amp;#xe78c;</div>
  423. </li>
  424. <li>
  425. <i class="icon iconfont">&#xe7d9;</i>
  426. <div class="name">cloud upload-o</div>
  427. <div class="code">&amp;#xe7d9;</div>
  428. </li>
  429. </ul>
  430. <h2 id="unicode-">unicode引用</h2>
  431. <hr>
  432. <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
  433. <ul>
  434. <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
  435. <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
  436. <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
  437. </ul>
  438. <blockquote>
  439. <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
  440. </blockquote>
  441. <p>unicode使用步骤如下:</p>
  442. <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
  443. <pre><code class="lang-js hljs javascript">@font-face {
  444. font-family: <span class="hljs-string">'iconfont'</span>;
  445. src: url(<span class="hljs-string">'iconfont.eot'</span>);
  446. src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
  447. url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
  448. url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
  449. url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
  450. }
  451. </code></pre>
  452. <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
  453. <pre><code class="lang-js hljs javascript">.iconfont{
  454. font-family:<span class="hljs-string">"iconfont"</span> !important;
  455. font-size:<span class="hljs-number">16</span>px;font-style:normal;
  456. -webkit-font-smoothing: antialiased;
  457. -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
  458. -moz-osx-font-smoothing: grayscale;
  459. }
  460. </code></pre>
  461. <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
  462. <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
  463. <blockquote>
  464. <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
  465. </blockquote>
  466. </div>
  467. </body>
  468. </html>