jsp的iframe框架应用
2017-12-11 15:32
34 查看
代码如下:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>iframe框架</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">
<script src="scripts/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<div style="width: 200px;height: 100%;float: left;border-right: 2px lolid #2F4050;"/>
<iframe src="/left.jsp" style="width: 100%;height: 100%" frameborder="0"></iframe>
</div>
<div style="width:calc(100%-202px);height: 100%;float: left;"/>
<iframe src="/left.jsp" style="width: 100%;height: 100%;" target="" frameborder="0"></iframe>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>iframe框架</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">
<script src="scripts/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<div style="width: 200px;height: 100%;float: left;border-right: 2px lolid #2F4050;"/>
<iframe src="/left.jsp" style="width: 100%;height: 100%" frameborder="0"></iframe>
</div>
<div style="width:calc(100%-202px);height: 100%;float: left;"/>
<iframe src="/left.jsp" style="width: 100%;height: 100%;" target="" frameborder="0"></iframe>
</div>
</body>
</html>
相关文章推荐
- iframe应用,悬浮框架
- JSP页面中使用iframe框架
- Maven Web项目SpringMVC框架应用出现JSP不能访问的问题
- 嵌入式框架iframe在Zend Framework中的应用
- CI框架 不能使用Frameset或Iframe 解决方法 (再创灵活应用新方法)
- ExtAspNet应用技巧(十三) - 后台主页面(IFrame框架)
- 百度富文本编辑器ueditor在jsp中的使用(ssm框架中的应用)
- jbuilder9如何配置JSP运行环境,java高级配置,struts4.0,三大框架的一起应用
- [置顶]百度富文本编辑器ueditor在jsp中的使用(ssm框架中的应用)
- Jsp中解决session过期跳转到登陆页面并跳出iframe框架的方法
- 各种框架(Struts、Spring、Hibernate)及应用服务器(Tomcat、WebSphere)对应的开发环境(JDK、Servlet、JSP)
- 快速开发高性能Jsp Web应用---FastJsp框架介绍
- ExtAspNet应用技巧(十三) - 后台主页面(IFrame框架)
- Jsp中解决session过期跳转到登陆页面并跳出iframe框架的方法
- jsp Iframe框架下,跨框架 访问 js 方法
- iframe框架流量分析 以导航站为例谈框架流量的应用
- struts采用JavaServlet/JSP技术,实现了基于Java EEWeb应用的MVC设计模式的应用框架
- HTML-iframe框架的应用
- struts采用JavaServlet/JSP技术,实现了基于Java EEWeb应用的MVC设计模式的应用框架