RaphaelJS: Creating click-through elements?

…衆ロ難τιáo~ 提交于 2019-12-03 16:20:58

问题


I need to overlay a label on top of multiple clickable elements. I want to be able to click on an element through the label on top of it.

Is this possible? If so, how would I accomplish this?


回答1:


In Firefox, Opera and Chrome/Safari you could use pointer-events: none in the style attribute. I'm not sure how that will work in IE where it's VML rather than SVG, you may have to figure out how to adapt Forwarding Mouse Events Through Layers to SVG content.



来源:https://stackoverflow.com/questions/3620561/raphaeljs-creating-click-through-elements

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!