![](https://img2022.cnblogs.com/blog/1779103/202205/1779103-20220505102512489-816763425.png)
@font-face { font-family: 'ZKKH'; //重命名字体名 src: url('zkkh.ttf'); //引入字体 font-weight: normal; font-style: normal; } @font-face { font-family: 'DIN-Bold'; //重命名字体名 src: url('DIN-BOLD.OTF'); //引入字体 font-weight: normal; font-style: normal; } @font-face { font-family: 'LQSZRH'; //重命名字体名 src: url('LianMengQiYiLuShuaiZhengRuiHeiTi-2.ttf'); //引入字体 font-weight: normal; font-style: normal; }
再在main.js中引入文件