jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
520 stars 82 forks source link

IE8 error:CSS3111: @font-face #148

Open LiangQingHao opened 2 years ago

LiangQingHao commented 2 years ago

error: CSS3111: @font-face 遇到了未知错误。 image image

CSS: ` @font-face { font-family: "iconfont"; src: url('iconfont.eot?t=1639564699070'); / IE9/ src: url('iconfont.eot?t=1639564699070#iefix') format('embedded-opentype'), / IE6-IE8 / url("iconfont.woff2?t=1639564699070") format("woff2"), url("iconfont.woff?t=1639564699070") format("woff"), url('iconfont.ttf?t=1639564699070') format('truetype'), / chrome, firefox, opera, Safari, Android, iOS 4.2+/ url('iconfont.svg?t=1639564699070#iconfont') format('svg'); / iOS 4.1- / }

[class^="iconfont-"], [class*=" iconfont-"] { font-family: 'iconfont' !important; font-size:16px; font-style:normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.iconfont-adobe:before { content: "\ea01"; } .iconfont-demo:before { content: "\ea02"; } .iconfont-git:before { content: "\ea03"; } .iconfont-left:before { content: "\ea04"; } .iconfont-stylelint:before { content: "\ea05"; }

`

HTML: <!DOCTYPE html>

Document
LiangQingHao commented 2 years ago

image

jaywcjlove commented 2 years ago

@LiangQingHao 你可以尝试解决,如果找到解决方案欢迎在这里分享给大家,我已经不关注 ie 的问题了 :(

image