讲解HTML中iframe和frame的区别
来源:才华咖 本文已影响2.88W人
来源:才华咖 本文已影响2.88W人
不知道你在项目中用过frameset属性没有,frameset这个属性是在去年我在一个在线客服系统制作中用过,因为客服系统要有固定的布局,上面一块,下面一块等等,当时就是用的frameset和frame。在我用完了这些属性之后,我才明白了iframe和frame的`区别。因为在这之前,我项目中一般不用框架,用的话也就是用到iframe。
下面说说其具体区别吧!总结了如下几点。
1、frame不能脱离frameSet单独使用,iframe可以;
2、frame不能放在body中;
如下可以正常显示:
XML/HTML Code复制内容到剪贴板
如下不能正常显示:
XML/HTML Code复制内容到剪贴板
相反,假如iframe放在frameSet属性下面,则必需放在body中
XML/HTML Code复制内容到剪贴板
3、iframe是一个html标签,在html中任何地方,都可以随意使用,而frame不可以。
XML/HTML Code复制内容到剪贴板
4、frame的高度只能通过frameSet控制;iframe可以自己控制,不能通过frameSet控制 而frame必须嵌套在frameSet中,且不能再table等标签中使用。
XML/HTML Code复制内容到剪贴板
5、如果在同一个页面使用了两个以上的iframe,在IE中可以正常显示,在firefox中只能显示出第一个;使用两个以上的frame在IE和firefox中均可正常
At Climate Summit, Hope for Emissions Deal美文欣赏
英语作文My Father Is A Gentle Man
The mountains the most beautiful female teachers英语作文
高中生优秀英语作文:Have a break away from electronics
My Plan for the Summer Vacation英语作文
far be it from me怎么解释
高中英语作文:The First Day Of Summer Holiday
Jolie drops battle over perfume named Shilohy英语作文
英语阅读:African Union Leaders Talk Mali, Chinese Investmen
电脑显示Primary master hard disk fail怎么办
Should women work after marriage英语作文
英语短文:City Life Compared with Rural Life
The Advice From Hollywood Female Stars高中英语作文
Margaret Sanger: The Morality of Birth Control quo
My father is a gentle man为题目的作文
should women work after getting married英语作文
Different art forms in China英语作文
Notice about the flea marke初中英语作文
My Favourite Animal初中英语作文
民国时期中统和军统的区别
My favorite animal初中英语作文
Modern Technology Makes Life More Conv英语六级作文
高中英语作文:My approach to difficulties in learning
How to make a fruit platter英语作文
My Plan for Summer Vacation英语作文
the Rain of Summer英语作文
The Danger of Fake Commodities英语作文
Life,Mother Teresa英语作文
关于Dreamweaver中怎么让html网页中的table边框细线显示?
初中英语作文:My favourite animal
解决PHP中的Cannot modify header information 问题
因式分解和分解因式的区别
文学意义The Meaning of Literature
Letter that Changed My Life大学英语作文
致辞和讲话的区别(精选多篇)
from One Child Families英语四级作文
The Importance of Breakfast英语作文
伪劣产品的危害The Danger of Fake Commodities英语作文
讲解HTML中iframe和frame的区别
My Favorite Animal-初中英语作文「最新」