为什么iframe框架调用不了百度知道首页

Mr_immortalZz 2011-08-19 06:04:22
如题,我代码是
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<iframe src="http://zhidao.baidu.com/" width="970px" height="540px" frameborder="0" scrolling="no" style="position: absolute; top: -132px; left: 10px;"></iframe>
</body>
</html>


预览显示找不到地址,感觉很奇怪,所以来问问
...全文
620 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Mr_immortalZz 2011-08-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 mubeibei 的回复:]
引用楼主 qq861268448 的回复:
如题,我代码是

HTML code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<iframe src="http://zhidao.bai……
[/Quote]
原来如此
MuBeiBei 2011-08-19
  • 打赏
  • 举报
回复
[Quote=引用楼主 qq861268448 的回复:]
如题,我代码是

HTML code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<iframe src="http://zhidao.baidu.com/" width="970px" ……
[/Quote]

应该是百度知道这个页面有防止被iframe的js代码,所以不行~·

61,111

社区成员

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

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