开发者

100% height table resets scroll offset

This is more like a question of principle.

I made a table with 100% width and height to make 3 rows nice and auto-resizable (welcome to xhtml :D).

When I begin to toggle() some elements, the total size of the page changes, and my browser resets its scroll offset and scrolls all the way to the top of the page.

Is there some way to prevent scrolling, except making a JS function to calculate the scr开发者_JAVA百科oll offset and make it jump to its previous offset? I don´t want to mess around with 3 divs, trying to align them automatically in their height.


delete href="#" :P


Try adding

html
        {
            overflow:scroll;
        }

to your CSS, or playing with those settings.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜