Twitter bootstrap 字形图标don';在bootstrap 3.2.0上运行bower安装时无法工作

Twitter bootstrap 字形图标don';在bootstrap 3.2.0上运行bower安装时无法工作,twitter-bootstrap,glyphicons,Twitter Bootstrap,Glyphicons,我的字体文件夹中有以下内容: 象形文字半身人规则 glyph-halflings-regular.eot glyph-halflings-regular.woff (路径:C:\Users\smitha\Code\proj\bower\u components\bootstrap\dist\font) 但是像glyphicon search这样的glyphicon没有加载 <div tabindex="6" class="glyphicon glyphicon-search">

我的字体文件夹中有以下内容:

  • 象形文字半身人规则
  • glyph-halflings-regular.eot
  • glyph-halflings-regular.woff
(路径:C:\Users\smitha\Code\proj\bower\u components\bootstrap\dist\font)

但是像
glyphicon search
这样的glyphicon没有加载

 <div tabindex="6" class="glyphicon glyphicon-search">...<.div>
。。。

首先,您似乎没有完整的字体文件集。一套完整的文件应包括以下5个文件:

  • glyph-halflings-regular.eot
  • glyphicons-halflings-regular.svg
  • glyph-halflings-regular.ttf
  • glyph-halflings-regular.woff
  • glyph-halflings-regular.woff2
  • 其次,除非您采取步骤明确标识字体文件的位置,否则标准位置假定为
    /font
    文件夹,它是包含
    bootstrap.js
    的目录的同级目录。例如,在发布中使用
    /font
    目录的位置:

    C:\Users\smitha\Code\proj\bower\u components\bootstrap\dist\font

    您的引导JavaScript库应位于:

    C:\Users\smitha\Code\proj\bower\u components\bootstrap\dist\js\bootstrap-3.2.0.min.js

    不管文件夹是否真正命名为
    /js
    ;它可以被命名为任何东西;重要的是,它是
    /font
    文件夹的同级。您没有提到引导库的位置,但我猜它不在
    /font
    目录的同级目录中


    如果这不能帮助您解决问题,您可能希望包含有关完整项目目录结构的更多信息,特别是引导JavaScript库的位置。

    Yep。我调试了更多内容,发现-my fonst位于此处:C:\Users\smitha\code\proj\bower\u components\bootstrap\dist\fonts,但我得到404作为-加载资源失败:服务器以404(未找到)的状态响应。如果您添加了有关项目完整布局的更多详细信息,包括任何部署配置文件的内容,可能还包括有关如何使用
    bower
    的详细信息,我不知道为什么选择了错误的路径以及如何更正它。没有这些细节很难说。但是你必须包括一些细节才能解决问题。谢谢肖恩。这是机密。我知道现在已经太迟了,但原因是你正在运行的服务器(可能是jetbrains产品)没有为他们提供服务