IE11 using svg as background-image fails

前端 未结 4 1925
遇见更好的自我
遇见更好的自我 2020-12-05 07:35

I\'m facing a weird problem with Internet Explorer 11 running on Windows 10 machine. Using an SVG image as background thats appears totally black, Edge with the same code wo

4条回答
  •  遥遥无期
    2020-12-05 07:57

    If, like me, you have inline SVG in your background

    (e.g. )

    You will want to make sure your encoding is charset=utf8 (e.g. url(data:image/svg+xml;charset=utf8,)

    Also ensure that reserved URL characters are encoded (e.g. < === %3C and > === %3E) and you use single quotes ' around attributes.

提交回复
热议问题