小程序 引用外部字体 在 开发工具上可以但在 真机上无效果?

发布于 6 年前作者 xiulanshao14194 次浏览最后编辑 6 年前来自 ask


@font-face {

font-family: 'iconfont2';

src: url("https://lecture.qdydl.net/fonts/SourceHanSansCN-Normal.otf");

font-weight: normal;

font-style: normal;

}

.content_box {

font-size:18rpx;

display: block;

line-height:35rpx;

font-family: "iconfont2" !important;

}

1 回复
xia26
xia261 楼4 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html