SVG data image not working on Firefox or Chrome 72+

前端 未结 4 821
轮回少年
轮回少年 2020-11-22 16:43

I\'m setting a SVG as background-image for a pseudo element:

content: \'\';
position: absolute;
 right: 0;
bottom: 0;
  left: 0;
width: 100%;
he         


        
4条回答
  •  忘了有多久
    2020-11-22 17:06

    The # character in a URL is reserved to indicate the start of a fragment identifier.

    You must URL encode the data URL contents, which means converting any hash characters in the data URL to %23

提交回复
热议问题