1.fix the width of the table,and don't use style="position:absolute"
2.or get the absolute position of the TD first like this
<script>
function fixPos(e){
var l=e.offsetLeft
var t=e.offsetTop;
while(e=e.offsetParent){l+=e.offsetLeft;t+=e.offsetTop}
//the l and t are the absolute positions of the obj(e)