frameset使用技巧

一、在一个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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值