垂直滚动条在IE中不显示

时间:2009-05-14 02:30:48

标签: css internet-explorer scrollbar

我有一个长页面,它应该在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;  
}

3 个答案:

答案 0 :(得分:1)

也许试试这个:

html { height: 100.1%; margin-bottom: 1px; }

答案 1 :(得分:0)

为什么使用

html, body, form{height:100%}

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

答案 2 :(得分:-1)

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

hasLayout: true;

到表格。

相关问题