在小程序中引入外部字体,并格式化。css如下:
font-family: 'PMZD'; src: url('http://ofvbasfrz.bkt.clouddn.com/guessSongApp/fonts/PMZD.woff2') format('woff2'), url('http://ofvbasfrz.bkt.clouddn.com/guessSongApp/fonts/PMZD.ttf') format('ttf'), url('http://ofvbasfrz.bkt.clouddn.com/guessSongApp/fonts/PMZD.eot') format('eot'), url('http://ofvbasfrz.bkt.clouddn.com/guessSongApp/fonts/PMZD.woff') format('woff'); font-weight: normal; font-style: normal; } |
但仅在安卓端能正常显示,iOS全挂。
在google荡了一圈,没找到解决方案,有朋友知道原因么?
anyway, thank you my friend.

如果我想要改变全局字体怎么做啊,在app.wxss中使用@font-face不行啊,哭唧唧
小程序中用js 引入外部字体。
使用的时候直接这样写
你好朋友,放在onLoad么?
onReady试试
好的 谢谢你~
成功了!!
怎么close Issue