Twitter bootstrap 无法加载资源glyphions-halflings-regular.woff2

Twitter bootstrap 无法加载资源glyphions-halflings-regular.woff2,twitter-bootstrap,http-status-code-404,glyphicons,Twitter Bootstrap,Http Status Code 404,Glyphicons,我在我的网站上使用引导,图标没有显示,在网络控制台上显示为 Failed to load resource: the server responded with a status of 404 (Not Found) http://mywebsite.in/lgm/assets/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 引导程序的目录结构是 资产 解放党 引导 css 字体 js 有人帮我解决这个问题吗 提前感

我在我的网站上使用引导,图标没有显示,在网络控制台上显示为

Failed to load resource: the server responded with a status of 404 (Not Found)
http://mywebsite.in/lgm/assets/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2
引导程序的目录结构是

  • 资产
    • 解放党
      • 引导
        • css
        • 字体
        • js
有人帮我解决这个问题吗


提前感谢

解决方案很少:

  • 您可以从bootstrap.css文件中硬删除这些行(如果您不使用它们)
  • 您可以将缺少的字体上载到指定的路径(
    /lgm/assets/lib/bootstrap/fonts/
    ,在这种情况下)
  • 您可以在不使用图标的情况下使用js/css

错误背后的原因是因为在正在查找的路径上找不到woff2。这可以通过将文件放在文件夹中来纠正。新下载的Bootstrap包含Fonts文件夹中的文件。

使用此字体glyphicons-halflings-regular.woff2检查Bootstrap.css文件,该文件位于指向的位置,或者请提供在那里写的内容
@font-face{font-family:'glyphicons-halflings';src:url(../font/glyphicons-halflings-regular.eot);src:url(../fonts/Glyphions-halflings-regulard41d.eot?#iefix)格式(../fonts/Glyphions-halflings-regular.woff2)格式(../fonts/Glyphions-halflings-regular.woff)格式(../fonts/Glyphions-halflings-regular.ttf)url(../fonts/Glyphions-halflings-regular.ttf)格式(../truetype)),url(../fonts/glyphicons-halflings-regular.svg#glyphicons-halflings-regular)格式('svg'))
在bootstarp.min.css中,我有关于glyphicons-halflings-regular.woff2的代码。您可以上传一些代码,以便我检查它的响应吗?Paresh Gami的一位同事解决了这个问题。@Jallipalli Phanindra您能告诉我您是如何解决这个问题的吗?我的文件夹中有字体,路径是正确的,但仍然有错误。