2011-03-03 67 views
1

@在Firefox 3.6.14不工作字體面 - WOFF或TTF@字體面在Firefox 3.6.14不工作 - WOFF或TTF

@font-face { 
    font-family: "A-B"; 
    src: url("fonts/AlexandriaFLF-Bold.woff") format("woff"), 
     url("fonts/AlexandriaFLF-Bold.ttf") format("truetype"), 
     url("fonts/AlexandriaFLF-Bold.svg#webfontm3eq21Q4") format("svg"); 
    font-weight: normal; 
    font-style: normal; 
} 

@font-face { 
    font-family: 'A-BI'; 
    src: url("fonts/AlexandriaFLF-BoldItalic.woff") format("woff"), 
     url("fonts/AlexandriaFLF-BoldItalic.ttf") format("truetype"), 
     url("fonts/AlexandriaFLF-Bold.svg#webfontszsn4DPI") format("svg"); 
    font-weight: normal; 
    font-style: normal; 
} 

任何人都可以告訴我嗎?

回答

5

FIX:

我使用.htaccess文件爲國防部重新寫,它實現@字體面...

的解決方法是將這個.htaccess文件中:

<FilesMatch "\.(ttf|otf|eot|woff)$"> 
<IfModule mod_headers.c> 
    Header set Access-Control-Allow-Origin "*" 
</IfModule> 
</FilesMatch> 
+0

你需要這種有無關字體的原因導入。這是因爲你試圖從不同來源提供內容。 – ide 2011-03-04 00:07:40

+0

+1另請參見http://stackoverflow.com/questions/2892691/font-face-fonts-only-work-on-their-own-domain/2892697#2892697 – BoltClock 2011-03-04 00:20:50

-3

我也想參加。我剛剛有一個類似的問題,因爲引用該網站爲www.domain.com而不是domain.com。

這是我的主要樣式表作爲該字體的css文件

@import url('http://www.domain.com/font.css'); - not working 


@import url('http://www.domain.com/font.css'); - working 
+3

恩,這兩行代碼之間有什麼不同貼? – 2011-03-04 19:50:20

+1

你的意思是把一個沒有W3的? – jhui 2011-03-05 00:28:44