开发者

JQGrid displayed over container (div with overflow:auto) in IE6/7

开发者 https://www.devze.com 2022-12-10 01:28 出处:网络
I\'m loading a JQGrid dynamically (using Jquery\'s load function). The grid is loaded inside a div that has the overflow:auto property, the idea is that if the grid is too wide, the div will display

I'm loading a JQGrid dynamically (using Jquery's load function).

The grid is loaded inside a div that has the overflow:auto property, the idea is that if the grid is too wide, the div will display scrollbars.

This approach works just fine with IE8, FF3, Chrome, but in IE6 and IE7 the grid is displayed over the container div, even though the div d开发者_开发技巧isplays the scroll bars, it doesn't hide the grid.

Here: http://www.twitpic.com/nj2xe you can see the two different results, the first one is with IE6, and the second one (expected) with IE8.

Any idea of how to overcome this?


I placed the jqGrid inside of a table (with one row and cell) and that seems to help with some layout problems I was having. Maybe it would help you also.

0

精彩评论

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

关注公众号