在我的网页中,我使用jquery插件在滚动内容时冻结表头。
参考: http://jacky.seezone.net/fixedheader/fixedheader.html
但问题在于表现。 Jquery在IE中渲染表(当表记录> 100时)大约需要15-20秒 但同样适用于firefox和chrome,它需要0.4秒(当表记录> 100时)
任何人都可以帮助我解决与表现有关的问题。
我注意到需要花费时间的地方。在它下面是代码的一部分,在IE中渲染大约需要13秒
var bodyContainer = table.wrap('<div></div>').parent()
.attr('id', tId + "_body_container")
.css({
width: s.width,
height: s.height,
overflow: 'auto'
});
//Wrap with an overall container
var tableContainer = bodyContainer.wrap('<div></div>').parent()
.attr('id', tId + '_table_container')
.css('position', 'absolute');