2017-10-06 57 views
-1

我已將bootstrap.css包含到我的html文檔中。現在我一直試圖顯示glyphicons,但他們根本沒有出現。誰能幫忙?獲取引導程序字形工作

心中已經試過

<i class="glyphicon glyphicon-align-justify"></i> 

<i class="glyphicon glyphicon-align-justify">&#xe055;</i> 

也試過

什麼也不顯示的頁面

+0

你還在'../ fonts /'目錄中有glyphicons字體嗎? –

+0

請提供您的html頁面。 –

+0

當我下載bootstrap時,字體目錄不存在 – ElenaDBA

回答

0
  • 確保你已經還下載字體文件夾..
  • 在bootstraps.css搜索該類

    @字體面{ FONT-FAMILY: 'Glyphicons半身人';

    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'); 
    

    }

  • 確保文件的路徑是正確的其他明智的,你可以改變它。
+0

aparently字體文件夾不再存在於Bootstrap v4中。字畫已被刪除 – ElenaDBA