2011-07-03 33 views
0

我使用此代碼在iframe中加載http://x.net,代碼已驗證。iframe in firefox

<!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>Store</title> 

    </head> 
<body style="margin: 0px; padding: 0px; border: 0px; background-color: #9e0000;"> 
    <div style="width: 100%; background-color: #9e0000; overflow: hidden; width:800px; padding-left:55px;background-image:url(http://x.net/images/MaintenceMode_icon.png); background-repeat:no-repeat; margin:auto; background-position:0 50%;" id="maintain"> 
    <h1 style="color:#fff; margin-bottom: 0px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:30px;">Maintenance Mode</h1> 
    <p style="color:#fff; margin-top: 0px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:14px;">Your store is in Maintenance Mode and not viewable by the public. Go to your 
     <a href="http://y.net" style="color:#fff; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:14px;">settings page</a> to change this.</p> 
    </div> 
    <iframe src="http://x.net/" width="100%" height="100%" frameborder="0" name="Main" style="margin: 0px; padding: 0px; border: 0px;"></iframe> 
</body> 
</html> 

問題是這段代碼工作正常,但在Firefox瀏覽器中,iframe未加載。任何建議?並且不建議刪除iframe。

回答

1

在Iceweasel 4和Firefox 3中,我加載了框架,但沒有這樣的頁面。

如果它不適合你,安裝螢火蟲:http://getfirebug.com/,它會幫助你診斷問題。

screenshot

+0

@afh,謝謝。你應該把它寫進評論中,而不是一個單獨的答案。 –

+0

firefox 5. iframe不在這裏顯示 –

+0

啊,對不起,我的意思是firefox 3:Mozilla/5.0 –