在ie和edge中,顯示固定列后,數(shù)據(jù)過多時(也就幾百行而已),滾動table很卡,而且有時候還會錯行,錯行后有時候再滾一下就回復了,有時候又怎么滾都不會自動回復,客戶需求又不能讓固定列禁止?jié)L動。請問有什么辦法讓兩個列的滾動條保持絕對一致呢?????...//滾動非固定列時if ( mouseController === 'main' ) { if ( that.s.iLeftColumns > 0 ) {
that.dom.grid.left.liner.scrollTop =that.dom.scroller.scrollTop;
} if ( that.s.iRightColumns > 0 ) {
that.dom.grid.right.liner.scrollTop =that.dom.scroller.scrollTop;
}
}
...
...//滾動固定列時 if ( mouseController === 'left' ) {
that.dom.scroller.scrollTop = that.dom.grid.left.liner.scrollTop; if ( that.s.iRightColumns > 0 ) {
that.dom.grid.right.liner.scrollTop = that.dom.grid.left.liner.scrollTop;
}
}
...麻煩各位大神了
dataTable.js 固定列和非固定列錯行
眼眸繁星
2018-12-22 01:18:11