2013-03-01 66 views
3

在IE8上是否支持通過@font-face datauri支持字體?
IE8上的數據採集是否僅支持圖像?IE8支持通過@ font-face datauri支持字體嗎?

我知道32KB的限制。我的.eot字體的base64表示不超過此限制。

我的CSS聲明是這樣的:

@font-face { 
    font-family: 'MyFont'; 
    src: url(data:font/opentype;base64,B1QAAB9TAAACAAI.....); 
    font-weight: normal; 
    font-style: normal; 
} 
+1

我會說:開放IE8和嘗試? – 2013-03-04 08:29:25

+1

@MichaëlHompus搖搖欲墜的想法:) – HerrSerker 2013-03-08 15:59:54

+1

你有這個嗎? – Riskbreaker 2013-03-11 21:09:01

回答

0

數據URI不應該是這方面的任何問題......

...它應該工作,我有我的.eot網頁的字體作品在使用此所有的瀏覽器(甚至IE7)......但我也使用WOFF/TTF/SVG還支持瀏覽器的其餘

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

確保IIS具有正確的MIME類型在您的本地/網絡服務器(EX:應用/ vnd.ms-fontobject.eot文件)。

最後....我懷疑Datauri是原因,但爲了安全起見嘗試沒有數據/ Base64和看看它做任何事情