search

Home  >  Q&A  >  body text

css3 - css里面自定义字体

@font-face {
font-family: "iconfont";
src: url(../font/iconfont.ttf) format("truetype");
}

@font-face {
font-family: "iconfont";
src: url(../font/iconfont-full.ttf) format("truetype");
}
此时的iconfont是以引入的哪个ttf文件为主呢?这个也是后面的覆盖前面的吗?

伊谢尔伦伊谢尔伦2783 days ago748

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:20:29

    The back part should overwrite the front part. You can try it and find two fonts that can be visually distinguished, and then run it to see the effect, and you will know whether it is covered or not

    reply
    0
  • Cancelreply