一、在一个frame中去刷新另一个frame页面
二、给framset整个大页面加背景图片
frameset首页面代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>优惠券终端首页面</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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">
<style type="text/css">
.bj{
background: url("../images/bj.png");
background-repeat: no-repeat;
/* 仅在ie下有效果,firefox无效果
filter:progid:dximagetransform.microsoft.alphaimageloader(enabled=true,src="../images/bj.png",sizingmethod="scale");
*/
}
</style>
</head>
<frameset rows="350px,789px,221px" frameborder="no" framespacing="0" class="bj">
<frame src="<%=request.getContextPath()%>/page/voucher/head.jsp" allowTransparency=true noresize="noresize">
<frame src="<%=request.getContextPath()%>/voucher/customerList.do" allowTransparency=true noresize="noresize">
<frame src="<%=request.getContextPath()%>/page/voucher/foot.jsp" allowTransparency=true noresize="noresize">
</frameset>
</html>
另外其他所有在这个frameset中显示的所有页面都要加上下面的css样式
<style type="text/css">
body{
background: transparent;
margin: 0px;
}
</style>