简体   繁体   English

IE6中的垂直滚动条

[英]vertical scroll bar in IE6

I am facing problem on div tag with vertical scroll. 我在带有垂直滚动的div标签上面临问题。 When I minimize the window the scroll bar does not appear in a small size window. 当我最小化窗口时,滚动条不会出现在小尺寸窗口中。 I am using Window Server 2003 sp2 and IE6 as client. 我正在使用Window Server 2003 sp2和IE6作为客户端。

Below is my div tag.. 以下是我的div标签。

<div style="border: 1 none Black; vertical-align: top;overflow:auto; height:470px; width:980px;"
class="content">

CSS: CSS:

.content
{
font-size: 11px;
background: url(../Images/bg-content.jpg) repeat-x top center;
padding: 20px;
height: 100%;
}

The problem in your code is the property overflow:auto; 您代码中的问题是属性overflow:auto; Ie6 had issues with it . IE6遇到了问题。 You can add the following two properties in your css something like : 您可以在CSS中添加以下两个属性,例如:

_overflow:hidden;
_overflow-y: visible;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM