Javascript单击元素 [英] Javascript click through element
本文介绍了Javascript单击元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个半透明的覆盖 div
覆盖文档,它会在点击时被销毁,但是我需要以某种方式同时触发叠加下面的元素的onlick事件。有没有办法点击与JS的特定坐标,或者可能确定具有绝对x和y位置的底层元素?感谢。
There is a semitransparent overlay div
covering document which destroys on click, but I need somehow to trigger onlick events of the element beneath overlay at the same time. Is there a way to click on specific coordinates with JS, or maybe determine underlying element having absolute x and y positions? Thanks.
推荐答案
Nick < a>发布了链接以获取关于如何获取元素的真棒答案由x和y但不幸的是它是一个注释,所以我不能接受它。 :(
Nick has posted a link to awesome answer on how to get elements by x and y but unfortunately it's a comment so I can't accept it. :(
这篇关于Javascript单击元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文