小程序 引用外部字体 在 开发工具上可以但在 真机上无效果?
发布于 5 年前 作者 xiulanshao 13933 次浏览 来自 问答


[@font-face](/user/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 回复

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

回到顶部