如何在HTML中使用嵌套的iframe? [英] How to use the nested iframe in html?

查看:60
本文介绍了如何在HTML中使用嵌套的iframe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试这样.但是frame1是可见的.我无法显示frame2.代码如下,

I am trying like this.But frame1 is visible. I can't show the frame2. The code is below,

    <!DOCTYPE html>
<html>
<body>

<iframe src="http://www.w3schools.com" width="1000" height="1000" id="frame1" name="frame1">
  <iframe width="200" height="200" src="http://www.bing.com" id="frame2" name="frame2">
  </iframe></iframe></body></html>

任何人都可以帮助我.

推荐答案

iframe的子元素是替代内容,用于禁用或不支持框架的情况.

The child elements of an iframe are alternative content for use if frames are disabled or not supported.

要么使子框架成为同级框架,要么将其移到要装入外部框架的文档中.

Either make the child frame a sibling or move it to the document you load into the outside frame.

这篇关于如何在HTML中使用嵌套的iframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆