Given some shape, I would like it to be clickable on its filled parts, and not clickable (thus clicking through to the element behind it) on its transparent parts. Here's an example of a triangle shape:
黑线是边界框线。我希望能够选择文本,或与边界框(绿色轮廓区域)内但未被填充部分覆盖的任何元素交互。
我尝试将 SVG 的指针事件设置为每个可能的值,但它似乎不起作用。首选解决方案将使用 html5、css 和 png 图像,但每个可行的解决方案都受到欢迎。
您可以添加样式属性
指针事件:无
到图像它将帮助您通过图像
注意:它仅适用于现代浏览器
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)