1.准备好需要的 .ttf 格式的语言包,在css导入:
@font-face { font-family: myFont; src: url('../assets/font/Oswald-SemiBold.ttf'); }
2.引用字体
span:{ font-family:myFont; }