SVG filter only working when added in style attribute (Firefox)

前端 未结 7 562
醉酒成梦
醉酒成梦 2021-01-01 17:28

I added a blur effect svg to my HTML(text/html):


    ...
    
        ...
        

        
7条回答
  •  太阳男子
    2021-01-01 17:58

    What zelanix said above... about adding a . before the filter as in

    .blur1 {
    filter:url(.#blur1);
    }
    

    Does the trick 100% and works in all browsers from what I can tell

提交回复
热议问题