第一个页面:<frameset rows="55,*,30" cols="*" framespacing="0" frameborder="no" border="0" >
<frame src="1.htm" name="topFrame" scrolling="No" noresize="noresize" id="topFrame"/>
<frame src="2.htm" name="mainFrame" id="mainFrame" scrolling="No" noresize="noresize"/>
<frame src="3.htm" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset><noframes></noframes>
第二个页面:<body >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="132" id="frmTitle" name="fmTitle" align="center" valign="top">
<iframe name="I1" id="I1" height="100%" width="132" src="左侧导航.html" border="0" frameborder="0" onload="reSetIframe()">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
<td align="center" valign="top"><iframe name="I2" id="I2" height="100%" width="100%" border="0" frameborder="0" src="右侧内容.html" onload="reSetIframe1()"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>
内容页我再加了个<body style="overflow:scroll;">页面还是无法滚动,求解!另外还有的页面是通过frame打开的,指定了高度后,压根连滚动条都没有求方法,内容太多的自动滚动,但是最好只出现框架页或内容页的一个滚动条
还有个最郁闷的是很多电脑尺寸不一样,如何自动适应高度且满屏就滚动?
网上搜了好多JS都不行!
<frame src="1.htm" name="topFrame" scrolling="No" noresize="noresize" id="topFrame"/>
<frame src="2.htm" name="mainFrame" id="mainFrame" scrolling="No" noresize="noresize"/>
<frame src="3.htm" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset><noframes></noframes>
第二个页面:<body >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="132" id="frmTitle" name="fmTitle" align="center" valign="top">
<iframe name="I1" id="I1" height="100%" width="132" src="左侧导航.html" border="0" frameborder="0" onload="reSetIframe()">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
<td align="center" valign="top"><iframe name="I2" id="I2" height="100%" width="100%" border="0" frameborder="0" src="右侧内容.html" onload="reSetIframe1()"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>
内容页我再加了个<body style="overflow:scroll;">页面还是无法滚动,求解!另外还有的页面是通过frame打开的,指定了高度后,压根连滚动条都没有求方法,内容太多的自动滚动,但是最好只出现框架页或内容页的一个滚动条
还有个最郁闷的是很多电脑尺寸不一样,如何自动适应高度且满屏就滚动?
网上搜了好多JS都不行!
如果height="100%, 高度可能会根据内容自动变化。请将高度给定一个值看看。
如height="680px",如果内容超过680px 就因该出现滚动条并能滚动。也可一层一层调试,看是哪层滚动异常。