勤奋、好学、不矜、不骄才是好女子

html框架

上一篇 / 下一篇  2009-12-21 19:44:10

实例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">
</frameset>
</html>
实例2:水平框架
<html>
<frameset rows="23%,50%,25%">
<frame. src="/example/html/frame_a.html">
<frame. src="/example/html/frame_b.html">
<frame. src="/example/html/frame_c.html">
</frameset>
</html>
注意:不能将<body></body>标签与<frameset></frameset>标签同时使用,不过,假如你添加包含一段文本的的<noframes>标签,就必须将这段文字嵌套于<body></body>标签内。
实例3:如何使用noframe标签
<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">
</frameset>
<noframeset>
<body>您的浏览器无法处理框架</body>
</noframeset>
<html>
实例4:混合框架结构
<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>
实例5:含有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>
实例6:导航框架
导航框架包含一个将第二个框架作为目标的链接列表。名为“content.html”文件包含三个链接
<html>
<frameset cols="120,*">
<frame. src="/example/html/html_contents.html">
<frame. src="/example/html/frame_a.html" name="showframe">
</frameset>
</html>
实例7:内联框架
<html>
<body>
<iframe. src="/i/eg_landscape.jpt"></iframe>
<p>一些老的浏览器不支持iframe。</p>
<p>如果得不到支持,iframe是不可见的。</p>
</body>
</html>
实例8:跳转到框架内一个指定的节
其中一个框架设置了指向另一个文件内指定的节的链接。这个“link.htm”文件内指定的节使用<a name="c10">进行标识。
<html>
<frameset cols="180,*">
<frame. src="/example/html/frame_a.html">
<frame. src="/example/html/link.html#c10">
</frameset>
</html>
实例9:使用框架导航跳转至指定的节
<html>
<frameset cols="190,*">
<frame. src="/example/html/content.html">
<frame. src="/example/html/line.html" name="showframe">
</frameset>
<html>

TAG:

 

评分:0

我来说两句

Open Toolbar