jQuery中的document.elementFromPoint? [英] document.elementFromPoint in jQuery?
本文介绍了jQuery中的document.elementFromPoint?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一个jQuery方法返回一个最接近窗口中指定点的元素,如document.elementFromPoint Javascript方法?
Is there a jQuery method which returns an element which lies closest to a specified point in the window like document.elementFromPoint Javascript method?
推荐答案
我认为jQuery本身没有提供这样的方法。您可以尝试使用这样的插件: http://gilmoreorless.github.io/jquery-nearest/
I think there's no such method provided by jQuery itself. You may try a plugin like this instead: http://gilmoreorless.github.io/jquery-nearest/
这篇关于jQuery中的document.elementFromPoint?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文