IE Intranet兼容性视图不包括某些字体 [英] IE Intranet Compatibility View not including certain font

查看:131
本文介绍了IE Intranet兼容性视图不包括某些字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站使用重量为400,300& 100来自Google Fonts API。该网站在我的本地机器上正常工作,但当发布到内联网,Lato字体消失,落回另一种字体。我意识到这是兼容性视图的问题,因为当(IE 11)中的框在兼容性视图中显示内部网站点时,问题消失。但是,我不能禁用兼容性视图,因为Intranet上的某些网站需要它,它会导致问题。

I have a site that is using the font Lato with weights 400, 300 & 100 from the Google Fonts API. The site works fine on my local machine but when published to the Intranet, the Lato font disappears and falls back on another font. I realise that this is a problem with Compatibility view as the problem disappears when the box in (IE 11) is unticked where it says 'Display Intranet Sites in Compatibility View'. However I cannot disable compatibility view as certain sites on the Intranet require it and it will cause problems.

有没有反正要让这种字体工作正常;我试过谷歌和各种响应,说,尝试和使用元标记在html,但这对我没有效果。不幸的是,完全为FireFox切开Internet Explorer,Chrome是不是一个选项,尽管该字体在FireFox&

Is there anyway to get this font to work correctly; I have tried Google and the various responses that come up say to try and use a meta tag in the html but this hasn't worked for me. Unfortunately, ditching Internet Explorer completely for FireFox, Chrome is not an option either despite the font working in both FireFox & Chrome.

这是我要导入字体的方式:

This is how I am importing the font:

<link href='http://fonts.googleapis.com/css?family=Lato:400,100,300' rel='stylesheet' type='text/css'>

用于CSS:

h1 {
  font-family: "Lato", Arial, sans-serif;
  font-weight: 100 !important;
}

任何帮助将非常感谢,
感谢

Any help would be greatly appreciated, Thanks

推荐答案

事实上,你使用兼容模式告诉我你试图使IE使用IE 9或更低版本,不支持Web字体,井9,但不是8或7.如果该网站工作在Chrome和FireFox,那么只是渲染边缘或最新版本的IE的网站,享受现代的美好。

The fact that you are using compatibility mode tells me you are trying to make IE use IE 9 or below, which don't support web fonts, well 9 does, but not 8 or 7. If the site works in Chrome and FireFox, then just render the site in edge or the latest version of IE and enjoy the modern goodness.

这篇关于IE Intranet兼容性视图不包括某些字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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