本地bootstrap 3.1 glyphicons不能在Firefox中加载 [英] Local bootstrap 3.1 glyphicons not loading in Firefox

查看:199
本文介绍了本地bootstrap 3.1 glyphicons不能在Firefox中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个本地HTML UI字体图标,从bootstrap不会在Firefox中加载,它们在Chrome和IE中执行。

不工作/不适用:
https://superuser.com/questions / 446001 / firefox-can-render-icons-from-font-awesome-webfont-set


glyphicons没有加载

Bootstrap 3 cdn glyphicons not firefox only loading



从引导3的图标不在Firefox上呈现

p>

https://github.com / MaxCD N / bootstrap-cdn / issues / 196

解决方案

这个问题显然是 https://developer.mozilla.org/zh/docs/HTTP/Access_control_CORS



适合我的是:

如果你有一个页面在file:////pages/mypage.html,那么你可以只加载位于file:////页面或以下的字体。所以,例如,如果字体在file:////字体中,它们将不会加载,但是如果它们在file:/// pages / fonts中,则它们应该工作。至少,这似乎是为我工作的。
由freixas @
发布 https://support.mozilla.org/en-US/questions/956597


所以基本上我把我的资源目录(包含脚本,图像等)在我有网页的根目录。


I'm creating a local HTML UI font icons from bootstrap don't load in Firefox, they do in Chrome and IE.

Not working/does not apply: https://superuser.com/questions/446001/firefox-cannot-render-icons-from-font-awesome-webfont-set

glyphicons are not loading

Bootstrap 3 cdn glyphicons not loading in firefox only

Glyphicons from bootstrap 3 not rendering on Firefox

https://github.com/MaxCDN/bootstrap-cdn/issues/196

解决方案

The problem is apparently https://developer.mozilla.org/en/docs/HTTP/Access_control_CORS

What works for me is:

"If you have a page at file:////pages/mypage.html, then you can only load fonts located in file:////pages or below. So, for example, if the fonts are in file:////fonts, they won't load, but if they are in file:///pages/fonts, then they should work. At least, that's how it seems to work for me." posted by freixas @ https://support.mozilla.org/en-US/questions/956597

So basically I put my resources dir (contains scripts, images etc) in the root directory where I have the web pages.

这篇关于本地bootstrap 3.1 glyphicons不能在Firefox中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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