怎么去掉frame里面的滚动条,让其自动适应大小!
怎么去掉frame里面的滚动条,让其自动适应大小!?
例如:
<frameset cols="70%,*" id="body" frameborder="0" border="0">
<frame src="flow_view_chartmodel.aspx" id="MiddleBody" >
<frame src="FlowSetRight.aspx" scrolling="no" id="rightBody" >
</frameset>
怎么让flow_view_chartmodel.aspx页自动适应大小,不出现滚动条??
[解决办法]
function SetCwinHeight(obj) { var cwin = obj; if (document.getElementById) { if (cwin && !window.opera) { if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight) cwin.height = cwin.contentDocument.body.offsetHeight + 20; //FF NS else if (cwin.Document && cwin.Document.body.scrollHeight) cwin.height = cwin.Document.body.scrollHeight + 10; //IE } else { if (cwin.contentWindow.document && cwin.contentWindow.document.body.scrollHeight) cwin.height = cwin.contentWindow.document.body.scrollHeight; //Opera } } }