How to serve fonts from different servers for IE users?

会有一股神秘感。 提交于 2019-12-02 02:39:10

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

<!--[if IE 9]>
    stylesheet using internally served fonts
<![endif]-->

and maybe

<!--[if !IE]> -->
    stylesheet using CDN
<!-- <![endif]-->

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!