문제

I'm using a table with tablesorter and tablesorter.pager. Both the table and pager are in a div with a background colour.

The issue I'm having is with the pager. It isn't being contained within the div, and instead floats below it. I assume it's an issue with 'display' or 'position' but whatever I do I can't get it to stay within the bounds of the container div.

Help!!

도움이 되었습니까?

해결책 2

To answer my own question...

In the jquery.tablesorter.pager.js file, in the fixPosition function, it is coded to always set the pager to be position: absolute. I've removed this line which solves my problem, but I would be interested to know why this was done!?

다른 팁

you don't need to remove the fixPosition, you should just set the positionFixed to false. It's by default true.

$('table').tablesorterPager({positionFixed: false, container: $("#pager")});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top