欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

icon图标

程序员文章站 2022-05-15 09:23:33
...

https://www.iconfont.cn/

icon图标
icon图标

  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. <!-- 第一步,引入图标的css -->
  9. <link rel="stylesheet" href="./css/iconfont.css" />
  10. <link rel="stylesheet" href="./css1/iconfont.css" />
  11. </head>
  12. <!-- 第二步,引用图标class -->
  13. <body>
  14. <span class="iconfont icon-attachment"></span>
  15. <span class="iconfont icon-camera"></span>
  16. <span class="iconfont icon-a-03-01 like"></span>
  17. <span class="iconfont icon-a-21-01 like1"></span>
  18. <style>
  19. .iconfont.icon-attachment {
  20. font-size: 80px;
  21. color: rgb(71, 114, 255);
  22. }
  23. .iconfont.icon-camera {
  24. font-size: 70px;
  25. color: rgb(18, 223, 46);
  26. }
  27. .like {
  28. font-size: 60px;
  29. color: green;
  30. }
  31. .like1 {
  32. font-size: 90px;
  33. color: rgb(058, 237, 160);
  34. }
  35. /* .iconfont.icon-camera {
  36. font-size: 80px;
  37. color: tomato;
  38. } */
  39. </style>
  40. </body>
  41. </html>