How to serve fonts from different servers for IE users?

前端 未结 1 606
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-22 08:46

I have users on IE9 who cannot see my custom fonts. First I thought it was a CORS issue, but after some experimentation I believe it is because the security settings are such th

1条回答
  •  醉梦人生
    2021-01-22 09:03

    Here's a way to do it with conditional comments. I don't know how your fonts and other styles are organized, but you'll probably want to use

    
    

    and maybe

    
        stylesheet using CDN
    
    

    The latter will apply not only to non-IE browsers but also to IE10 and up, but you might only need to use the former.

    To answer your first question, I prefer using fonts from my own servers when in production. Cuts down on the number of moving parts and means that my site doesn't rely on another site.

    0 讨论(0)
提交回复
热议问题