2016-08-29 49 views
2

我正面臨一些奇怪的問題,我希望有人能幫助我。 我正嘗試通過列表中的內容代碼加載glyphicons。現在Bootstrap 3:並非所有glyphicons內容代碼正在加載

,我面對的問題是: 誰不以「E」開頭的glyphicon碼工作就像一個魅力:

.contact-box__info--email::before { 
    content:"\2709"; 
} 

但glyphicons開始與一個「e」不工作:

.contact-box__info--phone::before { 
    content: "\e035"; 
} 

glyphicons加載在我的引導程序。當我通過一個跨度致電glyphicons像這樣:

<span class="glyphicon glyphicon-phone"></span> 

他們的工作以及..

基本上只有這些glyphicons正在努力:

.glyphicon-asterisk:before { 
    content: "\2a"; 
} 

.glyphicon-plus:before { 
    content: "\2b"; 
} 

.glyphicon-euro:before { 
    content: "\20ac"; 
} 

.glyphicon-minus:before { 
    content: "\2212"; 
} 

.glyphicon-cloud:before { 
    content: "\2601"; 
} 

.glyphicon-envelope:before { 
    content: "\2709"; 
} 

.glyphicon-pencil:before { 
    content: "\270f"; 
} 

難道別人之前遇到這個問題?

回答

0

在我們最近的一個項目中,我們也遇到了類似的問題,經過一些研究發現,我們的一位前端開發人員已經在bootstrap.css中更改了@ font-face和glyphicon類的默認引導字體系列文件。 將這些恢復爲引導​​默認值(font-family: 'Glyphicons Halflings';) 解決了該問題。

相關問題