开发者

vertical scroll bar disappears when DIV is in overflow state ( I.E. only)

开发者 https://www.devze.com 2023-03-10 21:48 出处:网络
I have the following DIV in I.E. (version 9 and 8) : <div stlye=\"width:820px;height:350px;overflow:auto\"> some large text blah blah .... </div>

I have the following DIV in I.E. (version 9 and 8) :

<div stlye="width:820px;height:350px;overflow:auto"> some large text blah blah .... </div>

both horizontal and vertical scroll bars display right on all browsers except IE, it only displays the horizontal one, and then, I have to scroll vertically using the mouse.

is there a solution for this problem ? thanks 开发者_如何学运维in advance.


I tryed this snippet with every browsers (including IE 7, 8 and 9) and I have no problems. Your style attribute is misspelled but I guess it's a typo...

Optionally, you can try this instead of "overflow:auto;" :

    overflow-x: auto;
    overflow-y: auto;

But this is the normal behaviour of "overflow:auto;".

0

精彩评论

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