HTML 内容页,框架集,框架,<frameset><frame>

模板页:

<!--模板页-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">   <!--必须是xhtml,dtd文件-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>网页标题</title>
	<meta name="keywords" content="关键字列表" />
	<meta name="description" content="网页描述" />
	<link rel="stylesheet" type="text/css" href="" />
	<style type="text/css"></style>
	<script type="text/javascript"></script>
</head>

<frameset  rows="100,*" border="1" >   <!--框架集,上下分页-->
	<frame src="top.html" />      <!--框架,内容页-->
	<frameset cols="200,*">       <!--嵌套框架集,左右分页-->
			<frame src="left.html" noresize="noresize" />   <!--框架,内容页-->  <!--noresize表示不能改变尺寸-->
			<frame src="right.html" name="content" />   <!--指定name为content-->
	</frameset>
 </frameset>


<noframes>  <!--不支持框架-->
<body>
您的浏览器不支持框架?不过像你的浏览器,真的不太好找
</body>
</noframes>
</html>
left.html 页面:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <link rel="stylesheet" type="text/css" href="" />
  <style type="text/css"></style>
  <script type="text/javascript"></script>
 </head>

 <body>
  <h2>左边的导航</h2>
  <a href="http://www.baidu.com" target="content">百度</a><br />  <!--在name为content的frame内容页中显示百度页面-->
  <a href="http://www.qq.com" target="content">腾讯</a><br />
 </body>
</html>



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值