美文网首页
Stylus预处理器简介(十五)@FONT-FACE

Stylus预处理器简介(十五)@FONT-FACE

作者: 曲昶光 | 来源:发表于2021-07-29 13:24 被阅读0次

@FONT-FACE

@font-face 的作用和你猜想的一样,在其后面直接添加个属性块即可,如下:

 @font-face
   font-family Geo
   font-style normal
   src url(fonts/geo_sans_light/GensansLight.ttf)

 .ingeo
   font-family Geo

编译为:

  @font-face {
    font-family: Geo;
    font-style: normal;
    src: url("fonts/geo_sans_light/GensansLight.ttf");
  }
  .ingeo {
    font-family: Geo;
  }

相关文章

网友评论

      本文标题:Stylus预处理器简介(十五)@FONT-FACE

      本文链接:https://www.haomeiwen.com/subject/ptwmmltx.html