-1

我有一个长页面,它应该在 IE 中显示垂直滚动条,但它没有。我可以单击一个按钮,然后出现滚动条,然后在重新加载页面时它们消失。

这是CSS

*{margin:0;padding:0}
html, body, form{height:100%}

body{position:relative;width:100%;}/*opera 9.5 fix*/

body 
{
    font-family:Trebuchet MS, Lucida Grande, Arial, sans-serif;
    text-align:center;
}
/* ---Layout--- */
#wrapper{ 
    width:100%;
    text-align:left;
    margin:auto;
    min-height:100%;
    margin-top:-100px;/*footer height*/

} 
* html #wrapper{height:100%}
#header{
    background: url(images/header.png);
    height:89px;
    border-top:100px solid #fff;/* soak up negative margin*/
}

#header_inner{
    width:960px; 
    margin-left:auto; 
    margin-right:auto;  
}
4

3 回答 3

1

也许试试这个:

html { height: 100.1%; margin-bottom: 1px; }
于 2009-05-14T04:05:33.397 回答
0

你为什么用

html, body, form{height:100%}

如果删除该行,会有滚动条吗?

于 2009-05-14T04:07:53.687 回答
-1

可能无济于事,但真的,试着摆脱身高:100% 的一切。很多时候它会导致 IE 出现问题。如果不能,请尝试添加

hasLayout: true;

到表格。

于 2009-05-14T04:08:04.153 回答