2012-09-24 31 views
0

我建立了一個網站。我在webs.com上託管它,但他們開始在僅支持html的託管上放置一個廣告欄。由於它看起來不太好,我將它改爲000webhost。由於我將所有內容上傳到000webhost,因此無法加載字體。字體沒有顯示@ font-face 000webhost

網: http://bluescreen-ofdeath.webs.com/

000webhost的: http://bsod.comze.com/

我試圖從我的網賬戶指向TTF字體,但它不會加載。

由於000webhost需要一天的時間來回答免費賬戶,所以我決定問你。有什麼我失蹤?

編輯:這是我@字體面對面

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

'.eot'文件包含它們有效的域列表;你有沒有檢查你的'.eot'文件是否需要修改以支持你的新域? –

回答

0

不要使用單引號的例子。你的字體會很好地工作。這很容易,看下面:

@font-face { 
    font-family:Arial; 
    src:url(Arial.ttf)format(.ttf); 
} 

提醒它,Internet Explorer只能用EOT字體文件。

0

字體必須在樣式表之前導入,如Google Web Fonts所規定的。

說明:要嵌入您的收藏到您的網頁中, 代碼複製在你的HTML文檔的<head>的第一要素。