类似猫扑的页面简单小框架

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<frameset rows="15%,*">
<frame src="top.html" noresize="noresize" />
<frameset cols=”30%,*“>
<frame src="html1.html" noresize="noresize" />
<frame src="right.html"  name="right"/>
<frameset/>
</frameset>
</html>

html1   主要左边的链接

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body bgcolor="#FFFF33">
<a href="http://www.baidu.com"  target="right">百度</a><br />
<a  href="http://www.mop.com" target="right">猫扑</a>
</body>
</html>

注;左边的链接要在右边的分层页面中实现,利用target 属性  name 的定义使用。。

若在当前页面跳转则target="_self",新的一页跳转,则target="_blank"

posted @ 2015-07-09 09:39  骏码信息  阅读(157)  评论(0编辑  收藏  举报