在HTML中iframe与frame有哪些区别


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

<body>   

   <iframe   name="frame1"   src="test1.htm"/>    

   <iframe   name="frame2"   src="test2.htm"/>    

</body> 

   

<table>   

<tr>   

<td><iframe id="" src=""></iframe></td><td></td>   

</tr>   

</table>

而frame必须嵌套在frameSet中,且不能再table等标签中使用。

4、frame的高度只能通过frameSet控制;iframe可以自己控制,不能通过frameSet控制

1

2

3

4

5

6

7

8

9

10

11

12

<!--<body>-->   

<frameset rows="50%,*">   

   <frame   name="frame1"   src="test1.htm"/>    

   <frame   name="frame2"   src="test2.htm"/>    

</frameset>   

<!--</body>-->   

<body>   

<frameset>   

   <iframe height="30%"  name="frame1"   src="test1.htm"/>    

   <iframe height="100"  name="frame2"   src="test2.htm"/>    

</frameset>   

</body>

5、如果在同一个页面使用了两个以上的iframe,在IE中可以正常显示,在firefox中只能显示出第一个;使用两个以上的frame在IE和firefox中均可正常


相信看了这些案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!

相关阅读:

h5和c3怎样做出太阳系行星运转的动画效果

HTML基础知识,关于超链接设置的样式的详细介绍

HTML段落的知识总结

以上就是在HTML中iframe与frame有哪些区别的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

把css放在html的哪里

html怎么设置字体加粗

html怎么设置图片长度

link标签是什么意思?

html怎么设置背景图片全屏平铺?

html网页选择使用哪种浏览器内核渲染的方法

html设置页面内链接的跳转―锚点链接

html sub标签怎么用

html blockquote标签怎么用

html图片不显示怎么办

更多相关阅读请进入《iframe》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...