2013-03-12 34 views
0
@font-face { 
    font-family: 'EntypoRegular'; 
    src: url('Entypo-webfont.eot'); 
    src: url('Entypo-webfont.eot?#iefix') format('embedded-opentype'), 
     url('Entypo-webfont.woff') format('woff'), 
     url('Entypo-webfont.ttf') format('truetype'), 
     url('Entypo-webfont.svg#EntypoRegular') format('svg'); 
    font-weight: normal; 
    font-style: normal; 

} 

這是在谷歌瀏覽器中工作,但不是在Internet Explorer中。它在IE本地工作,但在發佈時無法工作。@ font-face在Internet Explorer上不顯示它在谷歌瀏覽器中的工作

+0

爲什麼你加上'C#'標籤?它看起來不相關。 – 2013-03-12 06:34:00

+1

更新您的IE。 – 2013-03-12 06:47:23

+0

確定eot文件是從IIS提供的? – 2013-03-12 06:59:48

回答

0

保羅愛爾蘭已就這一主題的優秀文章: Bulletproof font-face implementation

@font-face {
font-family: 'EntypoRegular';
src: url('Entypo-webfont.eot?') format('eot'), url('Entypo-webfont.woff') format('woff'),
url('Entypo-webfont.ttf') format('truetype');
}

+0

它在當地工作,但在發佈或工作時。 – 2013-03-12 09:44:30

+0

服務器上的MIME類型是否有正確的設置? – JimmyRare 2013-03-12 09:56:22

相關問題