关于html的页面框架frameset

关于html的页面框架frameset

我的主页是拼接而成

<frameset rows="600,*,30" cols="*" frameborder="no" border="0" framespacing="0">
  <frameset cols="240,*" frameborder="no" border="0" framespacing="0">
    <frame src='../knowledge/showPlate.do?method=showPlate' name="leftFrame" scrolling="yes" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="MyHtml.html" name="mainFrame" frameborder="no" scrolling="yes" id="mainFrame" title="mainFrame" />
  </frameset>
<noframes>
<body>
对不起,页面框架不支持的浏览器类型
</body>
</noframes>

这样既可以对left,top.foot,main多个页面结构区域进行灵活操作。无论是控制器,还是直接调页面都没有问题,但是需要在具体样式css上调节位置。而且当在某一区域刷新另外一区域时候,应该以

 window.parent.leftFrame.location= "./knowledge/showPlate.do?method=showPlate";
      window.parent.mainFrame.location="./knowledge/showRight.do?method=readytoRightPage";这种格式,target可能会有问题,在访问页面显示上。

其中leftFrame,mainFrame都是frame的name属性

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值