开发者

Hidden JQGrid takes up space

开发者 https://www.devze.com 2023-02-21 01:02 出处:网络
I have a JQGrid inside an accordion. When the grid has no posts it is hidden, but still takes up space. I understand, it might be caused by so开发者_如何学Gome child elements that has style attribute

I have a JQGrid inside an accordion. When the grid has no posts it is hidden, but still takes up space. I understand, it might be caused by so开发者_如何学Gome child elements that has style attribute 'position' set to 'absolute'.

How do I find out if that is the case, and how do I change it?


it's possible the grid itself is set to position:relative; (to contain the absolute child elements) if the grid then has some padding or borders it will not completely disappear even if empty

to check look at the site in FF and use Firebug, to inspect the element, it will tell you what styles are still being applied

I suppose you could then choose to "display: none;" if there's no content

0

精彩评论

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