我应该如何以及在何处将 Glyphicons 文件夹添加到我的项目中?

How and where should I add the Glyphicons folder to my project?

似乎没有文档,我在 Whosebug 上找不到任何好的 solution/guide。

我应该如何以及在何处将 Glyphicons 文件夹添加到我的项目中?

我的应用文件夹结构:

-quickstart-master
     -app (*Here are my js anf html files*)
     -node_modules
        -bootstrap
           -fonts
     ....
    -index.html

因为 Bootstrap 分发文件意味着将它放在与您的 js 和 css 文件夹相同级别的 fonts 文件夹中:

|
|--js_folder_name/bootstrap.js
|--css_folder_name/bootstrap.css
|--fonts/ <---- put all the glyphicons files here
|

如果要更改为自定义文件夹,可以在 bootstrap.css 中编辑路径:

@font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}