在绝对位置查找元素 [英] find element at an absolute position
本文介绍了在绝对位置查找元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您将如何使用jquery在特定的x,y坐标处获取元素?您可以使用jquery使用.offset和.position查找绝对位置和相对位置.
How would you use jquery to get the element at a particular x, y coordinate? You can .offset and .position to find absolute and relative position using jquery.
推荐答案
像这样:
$(document.elementFromPoint(x, y))
这篇关于在绝对位置查找元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文