RaphaelJS:创建点击元素? [英] RaphaelJS: Creating click-through elements?

查看:24
本文介绍了RaphaelJS:创建点击元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在多个可点击元素上叠加一个标签.我希望能够通过上面的标签点击一个元素.

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?

推荐答案

Firefox, Opera 和 Chrome/Safari 你可以使用 pointer-events: none 在 style 属性中.我不确定它在 IE 中如何工作,它是 VML 而不是 SVG,您可能需要弄清楚如何适应 通过层将鼠标事件转发到 SVG 内容.

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.

这篇关于RaphaelJS:创建点击元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆