2011-07-03 47 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 –