开发者

Keep scroll position in IE

I have a table with fixed header 开发者_如何学Goand scrollable body. The issue is - if I scroll down or scroll left the body and after adding new row the scroll position of tbody resets in IE. In other browsers all works fine.

For do tbody scrollable I use styles display:block and positon:fixed. I use "fixed" because it works for IE for scrolling.

See simple example on jsfiddle (click on row to add new one)


I have tried in IE8. The scroll position does not reset if to replace the tbody.find("tr").live() with tbody.find("tr").bind(). Try to use if($.browser.msie) condition to use it in IE.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜