2016-07-13 3 views
2

설명서가 없으며 이에 대한 좋은 해결책/가이드를 찾을 수 없습니다.Glyphicons 폴더를 프로젝트에 어떻게 그리고 어디서 추가해야합니까?

어떻게 Glyphicons 폴더를 프로젝트에 추가해야합니까?

내 응용 프로그램 폴더 구조 :

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

죄송합니다. u는 Bootstrap의 [default glyphicons] (http://getbootstrap.com/components/#glyphicons)를 의미합니다. –

+0

사용할 아이콘을 신경 쓰지 않습니다. 답을 다시 게시하고 이것을 대신 사용하는 방법을 알려주시겠습니까? 어떤 혼란에 대해서도 많은 감사와 임씨! –

답변

2

부트 스트랩 배포 파일은 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'); 
}