1.第一步在样式里声明字体:告诉别人我们自己定义的字体。



@font-face{ /*声明字体 引用字体*/

font-family:'icomoon';
src:url('fonts/icomoon.eot');
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.svg#SofiaProLight') format('svg');
font-weight:normal;
font-style:normal;

}



2.第二步给盒子使用字体
span{
font-family: icomoon;
}


3.盒子里面添加结构

span::{

}


<span></span>


相关文章:

  • 2021-06-16
  • 2021-10-08
  • 2021-05-28
  • 2022-12-23
  • 2021-05-20
  • 2021-08-13
  • 2021-11-02
  • 2021-07-02
猜你喜欢
  • 2021-11-08
  • 2021-11-18
  • 2021-07-27
  • 2021-05-06
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案