似乎没有文档,我无法在Stackoverflow上找到任何好的解决方案/指南。
我应该如何以及在何处将Glyphicons文件夹添加到我的项目中?
我的app文件夹结构:
-quickstart-master
-app (*Here are my js anf html files*)
-node_modules
-bootstrap
-fonts
....
-index.html
答案 0 :(得分:2)
由于Bootstrap分发文件意味着将它放在与{js和css文件夹相同级别的|
|--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');
}
中编辑路径:
()