2012-01-03 43 views

回答

1

在您的DOCTYPE聲明的開始處有一個時髦的字符,IE不會忽略它。刪除,清除緩存,你的頁面應該加載得很好。

這裏是從驗證報告:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pastoraluc.cl%2Fweb%2Findex%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.2

Inportant位:

Line 1, Column 1: character "" not allowed in prolog 
+0

Hhhmm的問題似乎是另一個。我檢查過header.php文件([這是代碼](http://pastebin.com/xyd9yCc3)),並且在開始時沒有特殊字符。可能是一個JS IE的功能,把這個字符? – xphantom 2012-01-03 16:04:23

+0

使用諸如[notepad ++](http://notepad-plus-plus.org/)的工具檢查你的'header.php'文件的編碼,並確保它被設置爲UTF-8,我之前遇到過問題。 – 2012-01-03 16:08:32

+0

@ user1128078 - Andres是正確的,驗證者報告的是在doctype之前的BOM。在doctype之前的任何東西都會使IE進入怪癖模式。現代瀏覽器對此沒有任何問題。 – Rob 2012-01-03 16:21:50