父页面:
<div id="leftShowUser" class="hide"><CtlOtherUserLeft:CtlOtherUserLeft ID="CtlOtherUserLeft1" runat="server" /></div>
<iframe name="mainFrame" id="mainFrame" src="<%=GetAuthStatus()%>" width="698px" height="1200px" frameborder="0" scrolling="no"></iframe>
子页面:
<script type="text/javascript" language="javascript">
window.parent.document.getElementById("mainFrame").height = document.body.scrollHeight + 10;//框架的高度和子页一样高
window.parent.document.getElementById("leftShowNoUser").className="hide";//更改父页面的样式
window.parent.document.getElementById("leftShowUser").className="show";
</script>