HTML <frameset>
好久不用 <frameset>确实有点手生了,直接上代码看效果吧,简单易懂
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>企业员工弹性福利平台</title> <% String time = (String)request.getAttribute("currentTime"); String userName = (String)request.getAttribute("userName"); String date = DateUtils.toString(new Date(), Cst.DATE_DEFAULT_FORMAT); %> </head> <frameset id="fraMain" rows="63,*,30" framespacing="0" border="0" frameborder="0" onmouseover="self.status='当前用户:<%=userName%> 当前业务日期:<%=date%> 登录时间:<%=time%>';return true"> <frame name="header" src="/gis/getPage?pageName=top&userName=<%=userName %>" scrolling="no" noresize/> <frameset id="fraContent" cols="210,10,*" framespacing="0" border="0" frameborder="0"> <frame name="left" src="/gis/getPage?pageName=menu" frameborder="0" style="padding: 0; margin: 0;" > <frame name="banner" src="/gis/getPage?pageName=leftBanner" scrolling="no" noresize border="1" frameborder="0" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none" > <frame name="main" src="/gis/getPage?pageName=content" scrolling="yes" frameborder="0" style="" scrolling="auto"> </frameset> <frame name="footer" src="/gis/getPage?pageName=footer" scrolling="no" noresize/> </frameset> <noframes> <body>您的浏览器无法处理框架!</body> </noframes> </html>
效果如图
if you want to go fast,go alone,if you want to go far,go together