firefox无法显示iframe

jianwu5 2012-07-02 10:54:30
废话不说,上代码
3.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" />
<script src="cn1949/chkBrowser.js" type="text/javascript"></script>
<script src="cn1949/short-hand.js" type="text/javascript"></script>
<script src="cn1949/string.pro.js" type="text/javascript"></script>
<title>三人行--普通提问</title>
</head>

<body>
<div>
<iframe frameborder="1" name="sense" scrolling="no" src="1.html" width="200px" height="200px"></iframe>
</div>
</body>
</html>


1.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>json-php测试</title>
</head>

<body>
<div style="width:200px; height:500px">hello!hello!hello!</div>
</body>
</html>


ie8/chrome/opera显示正常。就FF13.0.1无法显示,打开firebug:

<div>
<iframe width="200px" scrolling="no" height="200px" frameborder="1" src="1.html" name="sense">
<html>
<head>
</head>
<body>
</body>
</html>
</iframe>
</div>

我不清楚,head/body内容怎么就被过滤掉了
...全文
548 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
jianwu5 2012-07-16
  • 打赏
  • 举报
回复
是呀。firefox很标准,但有时也令人难以捉摸。
刘大__ 2012-07-07
  • 打赏
  • 举报
回复
奇怪的现象。
86y 2012-07-04
  • 打赏
  • 举报
回复
奇怪的现象
d945332077 2012-07-03
  • 打赏
  • 举报
回复
结贴了??hao
jianwu5 2012-07-02
  • 打赏
  • 举报
回复
结贴了。我按f5、清空内存也不行,但重新在新窗口打开又可以了。哎。

61,115

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧