bootstrap icon fonts not loading

自闭症网瘾萝莉.ら 提交于 2021-01-27 08:13:08

问题


I am designing a page using bootstrap v3.3.7 (latest version)

The problem is glyphicons don't load from local resource but I have them from cdn!

I get this error in console:

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

and for other versions of fonts as well and below one:

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

but I'm sure the fonts exist and are available at http://www/bahasoft/fonts/

Any idea???

sorry about my bad english


回答1:


Check you nginx settings. If there is a filetype list, you should insert these font types into it also:

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


来源:https://stackoverflow.com/questions/39288716/bootstrap-icon-fonts-not-loading

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!