I have several (somewhat) overlapping `div`s, and if the user clicks on part of the overlap, I want a `mousedown` event (or any similar callback) for *each* `div` that's below the mouse coordinates.
The standard way, of course, only generates a callback for the topmost `div`. Is this possible? The only way that comes to mind would be to look for all divs on the page and check if any part of them is within the boundaries of the mouse click, but that would be horribly inefficient.
以上就是How to generate multiple mousedown events with overlapping objects in jQuery?的详细内容，更多请关注web前端其它相关文章！