没有滚动条的框架,但整个窗口应有一个

问题描述

请问,可以有3个水平框架,总高度大于屏幕高度吗?

窗口的侧面应该有一个滚动条,但是整个窗口只有一个滚动条。

我尝试过

<frameset rows = "350px,350px,350px" scrolling="yes">

然后

<frame name = "top" 
  src = "TopFrame.html" 
  border = 0
  frameborder = "0"
  scrolling="no"
  />

但这仅在我不开始填充其他帧的情况下起作用。当我填满它们时,顶部的将被调整大小。

子问题:我真的需要3个框架吗?或者是否可以在页面中插入一个框架,其中的内容为正文?我尝试过iframe,但是我在框架下面写的内容没有显示

我需要在不重新加载整个页面的情况下重新加载中间部分。我没有用jQuery做到这一点,所以现在我正在尝试框架。

解决方法

content_type="application/octet-stream" 上添加scrolling="no"

iframe
iframe {
    height: 500px;
    width: 100%;
    border: 0px;
}

,

写在页面中间的框架:

<iframe name = "middle" 
src = "MiddleFrame.html" 
border = 0
frameborder = "0"
scrolling="no"
>
Sorry your browser does not support inline frames.
</iframe>

并在头部添加:

<head>
<style>
body {
  height: 5000px; /* Makes this site really long */
  width: 98%; /* Makes this site wide but with no horizontal scrollbar*/
  overflow: auto; /* Shows scrollbars when needed */
}

</style>
</head>