2014-05-06 95 views
0

我一直在試圖弄清楚爲什麼這個@ font-face不適用於Firefox。@ font-face不適用於Firefox。

@font-face { 
    font-family: 'Eurostile'; 
    src: url("/fonts/eurostile_bold-webfont.eot"); 
    src: url("/fonts/eurostile_bold-webfont.eot?#iefix") format("embedded-opentype"), url("/fonts/eurostile_bold-webfont.woff") format("woff"), url("/fonts/eurostile_bold-webfont.ttf") format("truetype"), url("/fonts/eurostile_bold-webfont.svg#eurostilebold") format("svg"); 
    font-weight: bold; 
    font-style: normal; } 

@font-face { 
    font-family: 'Eurostile'; 
    src: url("/fonts/eurostile-webfont.eot"); 
    src: url("/fonts/eurostile-webfont.eot?#iefix") format("embedded-opentype"), url("/fonts/eurostile-webfont.woff") format("woff"), url("/fonts/eurostile-webfont.ttf") format("truetype"), url("/fonts/eurostile-webfont.svg#eurostileregular") format("svg"); 
    font-weight: normal; 
    font-style: normal; } 

我試圖與調用它:

font: 18px/1.5 "Eurostile",sans-serif; 
+0

它是如何「不工作」?看到怪異的字符或什麼都沒有?嘗試完整的網址? – Marcel

+0

不能用於顯示堆棧中的輔助字體(無襯線) –

+0

完整的URL是http://asantiblack.com/dev.cfm –

回答

0

嘗試調用您的字體是這樣的:

.text { 
    font-family: 'Eurostile', sans-serif; 
    font-size:18px; 
} 
+0

我試過了,但沒有奏效。 –

0

這是font-family:Eurostile;@font-face內。然後給它打電話,你使用完全相同的東西。你不需要報價。