框架页刷新问题IE6
作者:春暖花开 日期:2009-11-24
最近被一个框架页搞死了,IE6不行,IE7\8都可以。。。。万恶的IE6
主页面main.htm
<frameset rows="87,*,73" frameborder="no" border="0" framespacing="0" >
<frame src="top.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="178,*,4" frameborder="no" border="0" framespacing="0">
<frame src="left.htm" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="content.htm" name="mainFrame" id="mainFrame" title="mainFrame" />
<frame src="right.htm" name="rightFrame" scrolling="No" noresize="noresize" id="rightFrame" title="rightFrame" />
</frameset>
<frame src="bottom.htm" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes>
<body>
你的浏览器不支持框架。
</body>
</noframes>
其中content.htm里面又嵌套一个<div id='divContent'></div>
处理时,通过点击left.htm里面的菜单链接,在content.htm的divContent里面增加一个<iframe>
增加后,刷新这个框架页面(mian.htm),4个一级框架刷新了,但是content.htm里面的divContent并未刷新,也就是说现在的divContent里面已经有了一个iframe,导致再次点击left里面的菜单时,显示的时残留的iframe信息。
解决方案:在main.htm刷新时,对content.htm进行2次刷新。在topFrame里面加<script>window.parent.mainFrame.location.reload();</script>
这只是一个治表不治本的的方法-_-|||
上一篇
下一篇


文章来自:
Tags:
相关日志:




