我正在使用此代码在iframe中加载http://x.net,代码经过w3验证。
<!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。
答案 0 :(得分:1)