【问题标题】:bootstrap icon fonts not loading引导图标字体未加载
【发布时间】:2017-01-10 08:27:39
【问题描述】:

我正在使用 bootstrap v3.3.7(最新版本)设计页面

问题是字形图标不从本地资源加载,但我从 cdn 获得它们!

我在控制台中收到此错误:

downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:1): status=2147746065 source: http://www/bahasoft/fonts/glyphicons-halflings-regular.woff2

对于其他版本的字体以及以下字体:

downloadable font: no supported format found (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:5) source: (end of source list)

但我确定这些字体存在并且可以在 http://www/bahasoft/fonts/ 获得

有什么想法???

对不起我的英语不好

【问题讨论】:

  • 忘了说,http://www/ 是本地主机
  • 我也遇到过类似的问题。解决方案是为此版本下载最新版本的 bootstrap 和 glyphicons 包。
  • @owczarek 我已经用不同的版本做了两到三遍了!没有成功
  • 当您在浏览器中运行此 URL 时,http://www/bahasoft/fonts/glyphicons-halflings-regular.woff2 会给您带来什么
  • @Reddy 加载页面时没有任何样式和脚本

标签: css fonts


【解决方案1】:

检查你的 nginx 设置。如果有文件类型列表,您也应该将这些字体类型插入其中:

location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|eot|svg|ttf|woff|woff2)$

【讨论】:

    猜你喜欢
    • 2017-08-24
    • 2018-05-29
    • 1970-01-01
    • 1970-01-01
    • 2015-03-31
    • 2016-11-20
    • 2016-04-09
    • 1970-01-01
    • 2014-12-14
    相关资源
    最近更新 更多