标签 frameset, frame ,noframes,iframe

1.

<html>


<frameset cols="25%,50%,25%">
  <frame src="/example/html/frame_a.html">
  <frame src="/example/html/frame_b.html">
  <frame src="/example/html/frame_c.html">

<noframes>
<body>您的浏览器无法处理框架!</body>
</noframes>

</frameset>

</html>

2.

<html>

<frameset rows="50%,50%">

<frame src="/example/html/frame_a.html">

<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>

</frameset>

</html>
3.不能随意改变框架大小的属性  例子noresize

<html>

<frameset cols="50%,*,25%">
  <frame src="/example/html/frame_a.html" noresize="noresize" />
  <frame src="/example/html/frame_b.html" />
  <frame src="/example/html/frame_c.html" />
</frameset>

</html>
4.ifame  src属性  name属性 target属性

<html>

<body>

<iframe src="/i/eg_landscape.jpg"></iframe>

<p>一些老的浏览器不支持 iframe。</p>
<p>如果得不到支持,iframe 是不可见的。</p>


</body>
</html>

 属性

frame标签的其它属性如下: <frame>是用来表述被分割的每一个小窗口的情况的,其主要属性有:

src:指定每个frame链接文件的路径,即链接文件所在的目录。

marginwidth:设置文件与左右边框的距离。

marginheight:设置文件与上下边框的距离。

noresize:禁止浏览者改变frame的大小。

scrolling:设置滚动条是否显示,一共有三个参数:yes(显示)、no(不显示)和auto(由浏览器自动判断是否显示滚动条),缺省值是auto。

name:设置frame的名字。(可控制超链接出现位置) 

Target:

请注意链接中target的定义为_parent,这属于4个特殊的保留值。

它们是: _parent:在当前FRAMESET位置显示新href;

    _top: 在当前整个窗口位置显示新href,比如本身FRAMESET位于另一个FRAMESET中;

    _self: 强制在当前FRAME中显示新href;

    _blank: 在新窗口中显示href; 面简要说明一下<iframe>标签的用法与属性 

FrameSet属性:

<frameset>标签控制属性如下 :

framespacing=控制两个frame之间的距离;

frameborder=控制frame外框的粗细;

border=控制外框粗细,不外框便设成0 

posted @ 2009-12-08 18:02  十四  阅读(1073)  评论(0编辑  收藏  举报