只需要把iconfont.ttf文件转成base64格式的代码就可 Online @font-face generator — TransfonterThis tool converts any TTF, OTF, WOFF, WOFF2 or SVG fonts to css @font-face formats with CSS and HTML sample files.https://transfonter.org/进入网站 项目中的iconfont.wxss中 然后在哪个页面中使用就在那个页面的wxss中引入一下这个iconfont.wxss即可 成功以后,真机调试就可以显示了