在 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
});
在 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
});