frame是把网页分成多个页面的页面。它要有一个框架集页面frameset
iframe是一个浮动的框架,就是在你的页面里再加上一个页面,
iframe是一个浮动的框架,就是在你的页面里再加上一个页面,
解决方案 »
- 这个网站http://www.tjrjgcs.cn/的聊天工具怎么实现的啊?
- 从CSDN下载的迅雷的滑动门资料,这段代码看不懂,谁能帮助下
- javascript控制table的问题! 高手来!!
- 如何获取fckeditor的内容
- 在文本域中滚动文字
- 请问<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>中的ID=clientEventHandlersVBS 是什么意思?
- 3个不明白的js语法,请各位帮忙解释!
- 救命,看不懂,帮我注释下阿。
- 改变表格中鼠标点击过的行的颜色,netscape就是不认这个代码
- table合并相同单元格的问题 谁能解决,感激不尽,都来看看啊
- 如何访问数个名称相同的checkbox中的值?
- CGI处理问题,解决给分!
IFRAME:
The IFRAME element functions as a document within a document, or like a floating FRAME. The frames collection provides access to the contents of an IFRAME. Use the frames collection to read or write to elements contained in an IFRAME. For example, the syntax for accessing the backgroundColor style of the BODY object in an IFRAME is: sColor = document.frames("sFrameName").document.body.style.backgroundColor;You can access the IFRAME object's properties, but not its contents, through the object model of the page where the IFRAME object resides. For example, the syntax for accessing the border style of the IFRAME object is:sBorderValue = document.all.oFrame.style.border;The IFRAME element is a block element and requires a closing tag.This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
--------------
FRAME:
If a user opens a web folder inside a frame and then clicks something in the Web folder, the file or folder that the user clicks takes over the entire window. For example, suppose that a page contains two frames, one frame pointing to http://www.microsoft.com and the second frame pointing to a network drive. If the user clicks a file or folder in the second frame, that frame takes control of the entire window, including the first frame. For file types that the browser cannot host, such as .txt files, a separate window in the appropriate host application is opened.A Web folder is a part of the file system hierarchy, but it does not necessarily represent anything in the file system. An example is Network Neighborhood. The FRAME element is a block element and does not require a closing tag.This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
<frame>用于全页面
<iframe>只用于局部
<iframe>用来在页面中插入一个矩形的小窗口
iframe用来在页面的任何地方插入一个新的页面.因此,Frame用来控制页面格式,比如一本书,左边是章节目录,右边是正文,正文很长,看的时候要拖动,但又不想目录也被拖动得开不到了.因此最好将页面用Frame分成规则的2页,一左一右.而iframe则更灵活,不要求将整个页面划分,你可以在页面任何地方用iframe嵌入新的页面.