<%@ page language="java" import="java.util.*" pageencoding="utf-8"%>
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<html>
<head>
<title>我的测试</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
</head>
<!--把要添加框架结果添加在head标签后面就可以了,其中的frame要引入的jsp文件与平常的jsp文件一样-->
<frameset rows="12%,*" >
<frame name="sel" src="xxx.jsp" marginwidth="5" marginheight="5" scrolling="auto" frameborder="0" bordercolor="#0000ff">
<frame name="info" src="xxxx.jsp">
</frameset>
<body>
</body>
</html>
ps:我们有时候可能要对自己布局好的页面不让用户更改边框的大小,这样我们可以在frame里面添加noresize="noresize"属性就可以实现其中的功能。
这是jsp使用frameset框架布局。在这里我有个问题提出来与大家讨论一下:
frameset放在body标签里面为什么没有效果,要在放在head标签后面才可以实现jsp页面的布局效果?
有知道为什么,帮我解答。谢谢大家的阅读。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!