Why does svg referencing an element with clip-path not work?

后端 未结 2 834
自闭症患者
自闭症患者 2021-01-03 04:11

When implementing an SVG sprite, an element is created and svg elements are referenced via the element. The containing

2条回答
  •  感动是毒
    2021-01-03 04:36

    In my case, using only "width" and "height" equals to zero, left a void area where should be the image. However, using display:content; instead display:none; works fine, no void area and no image.

提交回复
热议问题