html中如何使用特殊字体

1.将字体文件(后缀.ttf)考到项目中。
2.css
@font-face {
font-style: normal;
font-family: DS-Digital;
src: url("../images/DS-DIGIB.TTF");
}
div{
  font-family: DS-Digital;
}
红色字体相对应即可
posted @ 2020-12-21 09:30  简单就好zyx  阅读(528)  评论(0编辑  收藏  举报