2016-07-13 4 views
2

Es scheint, es gibt keine Dokumentation und ich konnte keine gute Lösung/Anleitung auf Stackoverflow dafür finden.Wie und wo sollte ich den Glyphicons-Ordner zu meinem Projekt hinzufügen?

Wie und wo sollte ich den Glyphicons-Ordner zu meinem Projekt hinzufügen?

Meine app Ordnerstruktur:

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

Sorry, ich dachte yo Du meinst Bootstrap [Standard Glyphicons] (http://getbootstrap.com/components/#glyphicons) –

+0

Es ist mir egal, welches Symbol zu verwenden. Kannst du deine Antwort zurückschicken und mir bitte sagen, wie du das bitte verwenden sollst? Vielen Dank und im Voraus für Verwirrung! –

Antwort

2

Als Bootstrap-Verteilungsdateien bedeutetet in einem fonts Ordner auf dem gleichen Niveau wie Ihre js und CSS-Ordner setzen:

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

Sie den Pfad bearbeiten in bootstrap.css wenn Sie in einen benutzerdefinierten Ordner wechseln möchten:

@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'); 
} 
Verwandte Themen