收藏
回答

引用网络iconfont,开发者工具正常显示,但是真机无法显示图标?

@font-face {
    font-family: "iconfont"; /* Project id 3162387 */
    src: url('https://www.xxxxx.com/font/iconfont.eot?t=1658295806034'); /* IE9 */
    src: url('https://www.xxxxx.com/font/iconfont.eot?t=1658295806034#iefix') format('embedded-opentype'), 
/* IE6-IE8 */ url('https://www.xxxxx.com/iconfont.woff2?t=1658295806034') format('woff2'),
    url('https://www.xxxxx.com/font/iconfont.woff?t=1658295806034') format('woff'),
    url('https://www.xxxxx.com/font/iconfont.ttf?t=1658295806034') format('truetype'),
    url('https://www.xxxxx.com/font/iconfont.svg?t=1658295806034#iconfont') format('svg');
}
以上是导入方式


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容