Blur filter for IE 10+

前端 未结 1 1898
滥情空心
滥情空心 2021-01-18 08:41

I need to make a blur effect on a div. I know that for Chrome I can use CSS3 filters and for IE and Firefox I have to use an SVG filter. What I cannot figure out is why my S

相关标签:
1条回答
  • 2021-01-18 09:01

    IE still (on 11 now) doesn't support filter:blur(). IE10 supports SVG filters, but not for non-SVG content. I would just say you could use a foreignObject and change the opacity to rgba opacity, like this, but it turns out IE doesn't support foreignObject either.

    So either you can convert it all to SVG or fallback to an opacity change or something. See here and the linked page for more info.

    Even in Edge, CSS filter effects require users to allow a custom flag and don't support the url() functionality.

    0 讨论(0)
提交回复
热议问题