HTML <frameset> 标签(分帧)

定义和用法

frameset 元素可定义一个框架集。它被用来组织多个窗口(框架)。每个框架存有独立的文档。在其最简单的应用中,frameset 元素仅仅会规定在框架集中存在多少列或多少行。您必须使用 cols 或 rows 属性。

实例

简单的三框架页面:

<html>

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

</html>

 重要事项:您不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。不过,如果您需要为不支持框架的浏览器添加一个 <noframes> 标签,请务必将此标签放置在 <body></body> 标签中!

如index.html中使用分帧:

<html>
	<head>
		<meta http-equiv="content-type" content="text/html,charset=utf-8">
		<title>首页</title>
	</head>
	<frameset rows="20%,*">

		<frame src="__URL__/top" name='top'">

		<frameset cols="60%,40%">
			<frame src="__URL__/left" name='left'">
			<frame src="__URL__/right" name='right'">
		</frameset>

	</frameset>

</html>

 IndexAction.class.php:

class IndexAction extends Action {
    public function index(){
		$this->display();
        }
    	public function top(){
		$this->display();
	}
	public function left(){
		$this->display();
	}
	public function right(){
		$this->display();
	}    

 在TPL/Index目录下建立相应html即可

转载于:https://www.cnblogs.com/Hebe/archive/2013/04/30/3051735.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值