Internet Explorer 11和受支持的Web字体 [英] Internet Explorer 11 and supported web fonts

查看:379
本文介绍了Internet Explorer 11和受支持的Web字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TTF和OTF网络字体捕获大多数设备上的所有主要浏览器(FireFox,Chrome和IE11)。这一切看起来不错,然后重新安置到生产服务器,然后IE不想显示我的图标。

I'm using a TTF and OTF web font to catch all major browsers(FireFox, Chrome and IE11) on most devices. It all looks fine, before relocation to the production server and then IE doesn't want to show my icons.

我想,雷德蒙的大脑有某种功能在互联网上停止此工作,因此只能从localhost工作。

I guess, the brains in Redmond have some kind of feature to stop this working over the Internet, so it works from localhost only.

这里有什么交易?

推荐答案

这是使用@ font-face加载的标准方式,hacky fixes和所有 -

This is the standard way of loading with @font-face, hacky fixes and all -

@font-face {
    font-family: 'MyWebFont';
    src: url('webfont.eot'); /* IE9 Compat Modes */
    src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('webfont.woff') format('woff'), /* Modern Browsers */
         url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
    }

请检查兼容性表以支持EOT ,请检查这些链接 -

hey please check the Compatibility tables for support of EOT, check these links -

链接1

Link 2

这篇关于Internet Explorer 11和受支持的Web字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆