Coordinates of HTML elements
问题 I am going to create a selection 'lasso' that the user can use to select portions of a table. I figured that positioning a div over the region is far easier than trying to manipulate the cell borders. If you don't understand what I mean, open up a spread sheet and drag over a region. I want the div to align perfectly with the cell borders. I have a very good idea of how to do this, but how would I get the (x,y) coordinates (screen position) of a table cell (td)? 回答1: Use .offset() along with