铬和IE不加载谷歌字体 [英] chrome and IE do not load the google font

查看:192
本文介绍了铬和IE不加载谷歌字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用谷歌字体(Open Sans)。当我把我的网页直播时,我注意到FF正在加载字体,但Chrome( v23)和IE8-9不是,他们只是显示Arial。我查看了Chrome浏览器开发工具的Sources面板,字体甚至没有在那里列出。



我可以采取哪些步骤来尝试调试,还是没有人有线索是怎么回事?



谢谢

解决方案

问题是该网站使用https,我试图加载与http url的字体。不知道为什么FF加载它,但IE给了我安全的内容警告消息。


I am using a google font (Open Sans) on my website. Tested in all browsers on my local wamp server, and checked out great.

When I put my pages live, I noticed FF is loading the font just fine, but Chrome (v23) and IE8-9 are not, they are just displaying Arial. I looked in the Sources panel of the web developers tools in chrome, and the font is not even listed there at all.

What steps can I take to try and debug this, or does anyone have a clue what is going on?

Thanks

解决方案

The issue was that the site uses https, and I was trying to load the font with http url. Not sure why FF loaded it, but IE gave me the secure content warning message.

这篇关于铬和IE不加载谷歌字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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