Google字体在Internet Explorer(IE)11中无法使用 [英] Google Fonts not working in Internet Explorer (IE) 11

查看:126
本文介绍了Google字体在Internet Explorer(IE)11中无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在使用Google字体整理网站。一切都适用于IE6到10,Firefox,Chrome和移动浏览器。然而在IE 11没有字体加载和一切都使用后备字体(无衬线等)显示。

Currently putting together a site using Google Fonts. Everything works in IE6 through 10, Firefox, Chrome, and on mobile browsers. However on IE 11 no fonts load and everything is displayed using fallback fonts (sans-serif etc).

这个问题似乎已经在以下两页讨论,但无分辨率:

Google代码

MSDN论坛

This same issue seems to have been discussed on the following two pages but with no resolution:
Google Code
MSDN Forums

我还没有找到一个解决方案,我想知道这里是否有解决方法。

I have not been able to find a solution either and am wondering if anyone here has a workaround in place.

推荐答案

使用Web Font Loader javascript代替默认的添加字体的方法适用于IE11。 https://developers.google.com/fonts/docs/webfont_loader

Using the Web Font Loader javascript instead of the default method of adding fonts works in IE11 for me. https://developers.google.com/fonts/docs/webfont_loader.

它还具有在慢速连接上显示默认字体文本直到字体下载的优点,此时它将切换到google字体。

It also had the advantage of having default font text showing on slow connections until font downloads, at which point it will switch to google font. Otherwise you get no text at all for tens of seconds.

重要提示:您需要设计此开关,以最小化屏幕重新绘制并对最终用户执行,即选择仔细地回退字体堆。

Important note: You will need to design this switch to minimise screen re-draw and imact to end user i.e. choose the fall-back font stack carefully.

这篇关于Google字体在Internet Explorer(IE)11中无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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