Blogger Information
Blog 19
fans 0
comment 0
visits 10769
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
字体图标的使用方法
牙森江
Original
829 people have browsed it

字体图标的使用方法

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>字体图标</title>
  8. <link rel="stylesheet" href="CSS/iconfont.css">
  9. <!-- class -->
  10. <link rel="stylesheet" href="//at.alicdn.com/t/c/font_3731085_cyyzlbf3d5u.css">
  11. </head>
  12. <body>
  13. <div class="iconfont unicode">
  14. <span> &#xe72a;</span>
  15. <span> &#xe72a;</span>
  16. </div>
  17. <hr>
  18. <div class="iconfont class">
  19. <span class="icon-drxx92"></span>
  20. </div>
  21. </body>
  22. </html>

  1. /* CDN 服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
  2. @font-face {
  3. font-family: 'iconfont';
  4. /* Project id 3731085 */
  5. src: url('//at.alicdn.com/t/c/font_3731085_cyyzlbf3d5u.woff2?t=1666775834576') format('woff2'),
  6. url('//at.alicdn.com/t/c/font_3731085_cyyzlbf3d5u.woff?t=1666775834576') format('woff'),
  7. url('//at.alicdn.com/t/c/font_3731085_cyyzlbf3d5u.ttf?t=1666775834576') format('truetype');
  8. }
  9. @font-face {
  10. font-family: 'fon-name';
  11. src: url('');
  12. }
  13. .iconfont .unicode {
  14. font-family: 'iconfont';
  15. color: aquamarine;
  16. }
  17. .iconfont .class {
  18. font-family: 'iconfont';
  19. }

代码效果如下:

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:完成的没什么问题,继续加油
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post