开发者

CSS scrollbar in div doesn't work in FF

开发者 https://www.devze.com 2023-04-08 18:57 出处:网络
The below HTML used to show a vertical scrollbar in FF3.x and IE. I have installed FF6.0.2 and the scrollbar doesn\'t show up anymore!!

The below HTML used to show a vertical scrollbar in FF3.x and IE. I have installed FF6.0.2 and the scrollbar doesn't show up anymore!!

<html>
    <body>
        There should be开发者_StackOverflow社区 a scroll bar on the page
        <div style="background:red;position: relative; left: -1px; width: 19px; height: 300px; overflow: auto;">
            <div style="background:green;width: 1px; height: 540px;"></div>
        </div>
    </body>
</html>

How can I get my scrollbars to appear with latest FF? This still works in IE9. I think this is an issue with the combination of Windows7(Home Premium) and FF6.0.2. I tested this on Windows XP and FF6.0.2 it works fine.

CSS scrollbar in div doesn't work in FF


Try setting your overflow to scroll:

overflow:scroll;

Is this what you're looking for?

0

精彩评论

暂无评论...
验证码 换一张
取 消