-1

我需要用 HTML 做一个框架集,我看到垂直滚动没有显示在 IE8 上,但它在 Firefox 中完美运行。

为什么垂直滚动在 IE 上不起作用?我该怎么做才能让它在 Firefox 中工作?

代码是这样的:

<frameset rows="121,*" cols="*" framespacing="3" frameborder="yes" border="3" bordercolor="#009933">
  <frame src="arriba.html" name="topFrame" scrolling="NO" noresize >

  <frameset rows="*" cols="135,*" framespacing="3" frameborder="yes" border="3" bordercolor="#009933">
    <frame src="izquierda.html" name="leftFrame" scrolling="YES" noresize>
    <frame src="centro.html" name="mainFrame" scrolling="YES" noresize>
  </frameset>
</frameset>

izquierda.html 和 cenhtro.html 中的 scrolling="yes" 不起作用。

4

1 回答 1

2

IE8 在滚动=“是”时出现问题。改用css,应用于centro.html和izquierda.html的body标签:

<style type="text/css">
body  {
  overflow: scroll;
  /* In IE and CSS 3 you can even use these: */
  overflow-x: scroll;  /* Horizontal */
  overflow-y: scroll;  /* Vertical */
}

</style>

我想我不需要补充说您根本不应该使用框架布局。

于 2010-10-23T11:08:03.693 回答