在具有多个框架的HTML中启用自然滚动

时间:2019-02-16 18:09:07

标签: html scrollview scrollbar frame

我正在构建一个具有3个框架并且必须一起滚动的网页(因为在单个页面中可以滚动),但是下面的代码不会滚动任何单个框架。我想要整个网页的自然滚动行为。

<HTML>
<BODY>
<CENTER>
  <DIV style="display:table-cell; width:800; ">

      <iframe WIDTH=800 HEIGHT=220 src="frame1.html" name="topframe" frameBorder=0 SCROLLING=NO sandbox="allow-top-navigation"></iframe>

      <iframe WIDTH=800 HEIGHT=380 src="frame2.html" name="contentframe" frameBorder=0 SCROLLING=NO sandbox="allow-top-navigation"></iframe>

      <iframe WIDTH=800 HEIGHT=220 src="frame3.html" name="bottomframe" frameBorder=0 SCROLLING=NO sandbox="allow-top-navigation"></iframe>

  </DIV>
</CENTER>
</BODY>
</HTML>

0 个答案:

没有答案