2012-04-14 41 views
1

我有這樣的CSS:@ font-face在IE中不工作?

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

而且我申請這幾個div的整個頁面。它在除IE以外的每個瀏覽器都可以正常工作我有一個.eot文件,目錄是正確的。出於某種原因,它不起作用。

+0

作爲第一步,我會建議檢查瀏覽器是否實際嘗試加載字體,以及它是否成功(使用Fidddler和/或「開發人員工具」)。這至少會提供更多信息,說明問題出在哪裏。 – McGarnagle 2012-04-14 18:31:32

回答

0

您是否嘗試過運行Font Squirrel字體並嘗試使用IE中的示例?