您的位置:首页 > 其它

框架frameset和frame实现左右导航

2013-10-07 09:25 323 查看
main.jsp设计为上面是top.jsp左边为left.jsp,右边为要变化显示部分,起名为main每次要变化上面就要加上
target
=
"main"
<!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="42,*"  frameborder="NO" border="0" framespacing="0">
<frame src="top.jsp" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
<frameset cols="200,*"   id="frame">
<frame src="left.jsp" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />

<frame src="user.jsp" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
</frameset>
<noframes>
<body>很抱歉,馈下使用的浏览器不支援框架功能,请转用新的浏览器</body>
</noframes>
</html>
left.jsp中<a></a>也要加上
target
=
"main"
<li><a href="index.jsp" target="main">Home</a></li>

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  target 左右 frame