appdesign

------------恢复内容开始------------

 

阿里字体批量导入:
var iconList = document.querySelectorAll(\'.icon-gouwuche1\'); for (var i = 0; i < iconList.length; i++) { iconList[i].click(); }

 

移动端使用

官网下载代码:-> 代码文件夹中有个iconfont.css @font-face  url中添加https或http -> 

src: url(\'https://xxxxx\');方法导入字体,踩坑

 

建议把iconfont.tts 转换为base64格式,转换网址找度娘

 

src: url(data:font/truetype;charset=utf-8;base64,转换的字符串)format(\'truetype\');

 

------------恢复内容结束------------

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2021-07-08
  • 2021-05-25
  • 2021-04-11
  • 2021-11-18
  • 2021-11-18
  • 2021-08-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-05-03
  • 2021-12-21
  • 2021-12-12
  • 2021-06-17
相关资源
相似解决方案