收藏
回答

请问引入外部字体文件后缀为 ttc 的要如何引入?

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

1 个回答

  • Charb
    Charb
    10-14

    我用的这个方法,文件转base64

    @font-face {font-family"iconfont";
      srcurl("data:application/octet-stream;base64,AAEAAAANAIAAAwBQT1MvMlTj4mcAAADcAAAAYGNtYXANZRTBAAABPAAAAVJjdnQgAJcFewAAApAAAAAaZnBnbQZZnDcAAAKsAAABc2dseWaDpsN4AAAEIAAADNxoZWFk6HA5pAAAEPwAAAA2aGhlYQWGANgAABE0AAAAJGhtdHgE3wC/AAARWAAAACBsb2NhEn4WVAAAEXgAAAAcbWF4cAIdAcQAABGUAAAAIG5hbWVIt5LsAAARtAAAAy5wb3N0AE0BSAAAFOQAAAA8cHJlcL8xafsAABUgAAAATgAEAW8CvAADAAQCigJYAAAASwKKAlgAAAFeADIBMAAAAAAFAAAAAAAAAIAAAK8QAAAAAAAAAAAAAABBREJFACAALgClAsj+4ADIA6kA+gAAAAEAAAAAAfsCyAAgACAAAgAAAAMAAAADAAAAHAABAAAAAABMAAMAAQAAABwABAAwAAAACAAIAAIAAAAuADkApf//AAAALgAwAKX////T/9L/ZwABAAAAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQACAwQFBgcICQoLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFABmAGYAAAAG/zMABgEfAAQB+wAGAsgABgAAuAAALEu4AAlQWLEBAY5ZuAH/hbgARB25AAkAA19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WQuRElOIENvbmRlbnNlZEJvbGRESU4gQ29uZGVuc2VkIEJvbGQ7IDkuMGQxZTE7IDIwMTMtMDQtMDFESU4gQ29uZGVuc2VkIEJvbGQ5LjBkMWUxRElOQ29uZGVuc2VkLUJvbGRESU5TY2hyaWZ0TGlub3R5cGUgU3RhZmYAQwBvAHAAeQByAGkAZwBoAHQAIACpACAAMQA5ADgAMQAsACAAMgAwADAAMgAgAEgAZQBpAGQAZQBsAGIAZQByAGcAZQByACAARAByAHUAYwBrAG0AYQBzAGMAaABpAG4AZQBuACAAQQBHAC4AIABBAGwAbAAgAHIAaQBnAGgAdABzACAAcgBlAHMAZQByAHYAZQBkAC4ARABJAE4AIABDAG8AbgBkAGUAbgBzAGUAZABCAG8AbABkAEQASQBOACAAQwBvAG4AZABlAG4AcwBlAGQAIABCAG8AbABkADsAIAA5AC4AMABkADEAZQAxADsAIAAyADAAMQAzAC0AMAA0AC0AMAAxAEQASQBOACAAQwBvAG4AZABlAG4AcwBlAGQAIABCAG8AbABkADkALgAwAGQAMQBlADEARABJAE4AQwBvAG4AZABlAG4AcwBlAGQALQBCAG8AbABkAEQASQBOAFMAYwBoAHIAaQBmAHQATABpAG4AbwB0AHkAcABlACAAUwB0AGEAZgBmAAAAAgAAAAAAAP+1ADIAAAAAAAAAAAAAAAAAAAAAAAAADQANAAAAEQATABQAFQAWABcAGAAZABoAGwAcAJa4AAArALoAAQABAAIrAboAAgABAAIrAb8AAgA2AC0AIwAZAA8AAAAIKwC/AAEANgAtACMAGQAPAAAACCsAugADAAUAByu4AAAgRX1pGEQAAA==")format('truetype');
     }
    
    10-14
    有用
    回复
登录 后发表内容
问题标签