如何检测重叠的HTML元素 [英] How to detect overlapping HTML elements
问题描述
是否可以轻松地找到HTML页面中由给定元素(div)隐藏的元素?
Is it possible to find easily elements in HTML page that are hidden by given element (div)?
如果可能的话,我更喜欢jQuery.你知道这样的插件吗?
I prefer jQuery if possible. Do you know such plugin or something?
我在jQuery API中进行了搜索( http://api.jquery.com/),但是没有找到找不到有用的东西.
I searched in jQuery API (http://api.jquery.com/), but didn't find something useful.
推荐答案
一种可能的解决方案是 jQuery Collision 扩展: http://sourceforge.net/projects/jquerycollision/.
One possible solution is jQuery Collision extension: http://sourceforge.net/projects/jquerycollision/.
JQuery扩展返回两个选择器之间的冲突. 处理填充,边距,边界,并可以确定重叠或 外面的部分.返回JQuery重叠"对象.要求: jquery1.8.3 +,示例还需要:jqueryui1.9.2 +
JQuery extension to return the collisions between two selectors. Handles padding, margin, borders, and can determine either overlap or portion outside. Returns JQuery "overlap" objects. Requires: jquery1.8.3+, examples also require: jqueryui1.9.2+
这篇关于如何检测重叠的HTML元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!