小程序配置:
代码:
@font-face {
font-family: 'iconfont';
src: url('https://static.leagcard.com/frontLibs/dsmp/icon/iconfont.ttf') format('truetype'),
url('https://static.leagcard.com/frontLibs/dsmp/icon/iconfont.woff2') format('woff2'),
url('https://static.leagcard.com/frontLibs/dsmp/icon/iconfont.woff') format('woff');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 30rpx;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-duanxin::before {
content: "\e64d";
}
.icon-dianhua::before {
content: "\e64c";
}
<text class="iconfont icon-dianhua"></text>
<text class="iconfont icon-duanxin"></text>
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。