uniapp写小程序,使用tabBar引入icon不显示图标,百度方法都试了不成功怎么办?-灵析社区

笑面猫

图标的unicode: .icon-shouye-xianxing-copy:before { content: "\f040"; } 引入位置也没错 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/551f8cf352488770bcedc5e14208dc22.png) iconfont.css里的地址也修改了 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/a85222971f8e2e7bfce3ad807f00f9a7.png) "tabBar": { "color": "#7A7E83", "selectedColor": "#3cc51f", "borderStyle": "black", "backgroundColor": "#ffffff", "iconfontSrc": "static/iconfont-css/iconfont.ttf", "list": [{ "pagePath": "pages/index/index", // "iconPath": "static/image/icon_component.png", // "selectedIconPath": "static/image/icon_component_HL.png", "text": "组件", "iconfont": { "text": "\uf040", "selectedText": "\uf040", "selectedColor": "#34BAFF" } }, { "pagePath": "pages/joint/index", // "iconPath": "static/image/icon_API.png", // "selectedIconPath": "static/image/icon_API_HL.png", "text": "接口", "iconfont": { "text": "\uf040", "selectedText": "\uf040", "selectedColor": "#34BAFF" } }] }, 还是不显示图标 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250103/d9cd94bc7907f968dc74bf204ab973f5.png)求教

阅读量:27

点赞量:0

问AI
超好看鸭
"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241210/e6d94ab1c62bd60f86f26916a4c2eaa2.png) "iconfont"属性不支持小程序