在样式表如此定义:

@font-face {
    font-family: MyFontName;//自定义字体名称
    src: url(../Gloss_And_Bloom.ttf)
}

然后,具体使用:

<div style="font-family:MyFontName;">Test Text</div>

 

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-06-15
  • 2021-12-22
  • 2021-11-19
  • 2022-12-23
  • 2021-11-09
猜你喜欢
  • 2021-11-22
  • 2021-12-21
  • 2021-10-30
  • 2022-12-23
  • 2021-07-18
  • 2022-01-10
相关资源
相似解决方案