1、首先得有相关字体的文件,加入到项目中 2、配置引入字体的文件 // 引入数字字体 @font-face { font-family: 'digits'; src: url('../assets/fonts/digits.ttf') format('truetype'); } 3、使用 4、效果