收藏
回答

iconfont第三方引入base64出现图标全黑?

基础库 2.30.0

iconfont.wxss文件

@font-face {
  font-family'iconfont';
  srcurl('data:font/ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTZXBn5sAAAgoAAAAHEdERUYAKQALAAAICAAAAB5PUy8yPFNI7gAAAVgAAABgY21hcAAP6coAAAHMAAABQmdhc3D//wADAAAIAAAAAAhnbHlmGyvw0QAAAxwAAAIcaGVhZCM8vI8AAADcAAAANmhoZWEH3gOFAAABFAAAACRobXR4DAAAAAAAAbgAAAASbG9jYQCWAQ4AAAMQAAAADG1heHABFABzAAABOAAAACBuYW1lXoIBAgAABTgAAAKCcG9zdDQ8hm0AAAe8AAAARAABAAAAAQAAPrFM2l8PPPUACwQAAAAAAOAOvEkAAAAA4A68SQAA/4AEAAOAAAAACAACAAAAAAAAAAEAAAOA/4AAXAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAFAGcABQAAAAAAAgAAAAoACgAAAP8AAAAAAAAABAQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZADA5h7mHwOA/4AAAAPcAIAAAAABAAAAAAAAAAAAAAAgAAEEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAMAAAADAAAAHAABAAAAAAA8AAMAAQAAABwABAAgAAAABAAEAAEAAOYf//8AAOYe//8Z5QABAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AABDcmVhdGVkIGJ5IGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAABHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuAABoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAABodHRwOi8vZm9udGVsbG8uY29tAAAAAAIAAAAAAAAACgAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAgECAQMMemFpeGlhbnppeHVuCmp1YmFvLWNvcHkAAAAB//8AAgABAAAADAAAABYAAAACAAEAAwAEAAEABAAAAAIAAAAAAAAAAQAAAADVpCcIAAAAAOAOvEkAAAAA4A68SQ==')
    format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


.iconfont {
  font-family'iconfont' !important;
  font-size50px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.icon-jubao-copy:before {
  content'\e61f';
}


.icon-zaixianzixun:before {
  content'\e61e';
}


已导入全局app

但是效果是这样的

黑色方块就是我引入的图标 <text class="iconfont icon-jubao-copy"></text>

前面那个正常的 是我用其他人的文件 直接用的 没问题

我也不知道哪出问题了 求助


回答关注问题邀请回答
收藏
登录 后发表内容