Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在多个可点击元素之上覆盖一个标签。我希望能够通过其顶部的标签单击一个元素。
这可能吗?如果是这样,我将如何做到这一点?
在Firefox、Opera 和 Chrome/Safari中,您可以pointer-events: none在 style 属性中使用。我不确定这将如何在 IE 中使用 VML 而不是 SVG,您可能必须弄清楚如何将通过图层转发鼠标事件适应SVG 内容。
pointer-events: none