2011-03-03 2 views
1

파이어 폭스 3.6.14에서 작동하지 않는 폰트 얼굴 @ - WOFF 또는 TTF를 파이어 폭스 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

+0

+1 관련 항목 http://stackoverflow.com/questions/2892691/font-face-fonts-only-work-on-their-own-domain/2892697#2892697 – BoltClock

-3

나는 domain.com 대신 www.domain.com과 같은 사이트를 참조하기 때문에 비슷한 문제가 발생했습니다.

글꼴 CSS 파일

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


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

음, 두 줄의 코드가 다른 점은 무엇입니까? 게시 된? –

+1

w3없이 하나 넣으시겠습니까? – jhui

관련 문제