1

在 mouseenter/mouseleave 事件中,我想捕获表格单元格的绝对“顶部”位置。

到目前为止,事件是这样附加的:

$('td[someAttr]').mouseenter(function(mouse) {
   // how do we get the td's top absolute position?

   //FYI: mouse.pageX and mouse.pageY would give the mouse position
});
4

1 回答 1

4
$(this).offset().top
于 2009-06-25T18:11:48.733 回答