2012-09-12 57 views
1

我試圖在IE8中呈現IE瀏覽器中的網頁,因爲IE9與CSS做的很糟糕,並且沒有顯示@ font-face。迫使IE9像IE8呈現的問題

我在這裏閱讀微軟文檔:http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx和其他相關主題,如IE9 does not at all care about 'X-UA-Compatible' meta tagForce IE9 to emulate IE8. Possible?並沒有解決我的問題,或者我是非常愚蠢的(女巫均可)或我無法找到問題。

網頁是:karactermania.com/web2012/betty,我使用CMS Textpattern來構建它。

我試着用:

<!-- Enable IE8 Standards mode --> 
<meta http-equiv="X-UA-Compatible" content="IE=8" /> 

<!-- Enable IE8 Standards mode --> 
<meta http-equiv="X-UA-Compatible" content="IE8" /> (as I found some examples written with and without the "=") 

<!--[if IE 9]> 
<meta http-equiv="X-UA-Compatible" content="IE8" > 
<![endif]--> (desperate attempt) 

完整的HTML聲明:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xmlns:fb="http://ogp.me/ns/fb#"> 
<head> 

<!-- Enable IE9 Standards mode --> 
<meta http-equiv="X-UA-Compatible" content="IE8" /> 

如果任何人都可以指出錯誤所在,我怎麼能解決這個問題,將獲得我的感恩永恆:)

謝謝

+0

爲什麼不解決實際問題的所有其他元素之前的解決方案'@ font-face'不工作?你的'@ font-face'代碼是什麼? – Patrick

回答

0

我和你有同樣的問題。我的X-UA兼容標頭被忽略。我發現在這個post

的X-UA-Compatible標頭必須是在頭部,除了標題元素和其他meta元素