我有一個簡單的頁面設置使用fancybox顯示登錄表格here。它適用於除IE9以外的所有主流瀏覽器。奇怪的是,它在IE9中的本地Web服務器上運行時沒有問題,但在線頁面上它沒有顯示任何內容。Fancybox在IE9中顯示無內容
任何想法如何解決它?
我有一個簡單的頁面設置使用fancybox顯示登錄表格here。它適用於除IE9以外的所有主流瀏覽器。奇怪的是,它在IE9中的本地Web服務器上運行時沒有問題,但在線頁面上它沒有顯示任何內容。Fancybox在IE9中顯示無內容
任何想法如何解決它?
只是把你的login.html,基本的HTML標籤所需要的頁面
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div>
<form action="#" method="post" id="login" class="overlay">
<h1>Login</h1>
<div id="username-password-group" class="control-group">
<label for="username" class="control-label">Benutzername:</label>
<input type="text" id="username" name="username" class="input-xlarge" />
<label for="password" class="control-label">Passwort:</label>
<input type="password" id="password" name="password" class="input-xlarge" />
</div>
<label for="remember-me" class="checkbox">
<input type="checkbox" id="remember-me" name="rememberMe" class="inline"/>
Eingeloggt bleiben
</label>
<input type="submit" value="Einloggen" class="btn btn-success" />
</form>
</div>
</body>
</html>
IE上如果沒有基本的HTML標籤對彌合``標籤
我已經解決了你的代碼在我的本地主機,它在IE9中工作正常 –
我剛剛更新了你的建議的例子。它仍然不起作用。在我的本地主機上,一切工作正常,但不是在線版本。 – Holger
嘗試更新login.html以及您的活動服務器 –
什麼不渲染頁面? ...另外,嘗試編輯文件編碼UTF-8沒有BOM,並強制上載爲二進制http://validator.w3.org/check?uri=http://efcworld.de/test/fbox.html – JFK
您的評論讓我走上了正軌。問題是,我的Web服務器在響應頭中發送charset = none。在我的.htaccess中使用「AddDefaultCharset UTF-8」修復了它。謝謝! – Holger