scss中引用和使用字体

引用

@font-face {
  font-family: 'Aleo-Bold';  //重命名字体名
  src: url('../../../assets/fonts/Aleo-Bold-2.otf');  //引入字体
  font-weight: normal;
  font-style: normal;
}

使用
font-family: Aleo-Bold;

评论

暂无评论