我的当前系统存在一些问题。
查看这张图片:http://imgur.com/KgHu3 我想在头像后面“点击”以获取他身后的“元素”(表格)。但我不能,因为图片重叠。
在这里你可以看到问题:http://imgur.com/tRqTz
我应该怎么做?是不可能的?还是我必须在 HTML5 Canvas 中制作它才能完成这项工作?
最佳答案
最好的方法应该是只使用 CSS:
#avatarDiv{pointer-events:none;}
更新
在这条评论之后,
I should also be available to rightclick on the "overlapping" picture, only the places where the image is transparent i should be available to catch the parent image.
这不再是解决方案。
关于javascript - 单击图像后面的元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14294169/