Chrome not rendering SVG referenced via

后端 未结 21 1621
孤独总比滥情好
孤独总比滥情好 2020-11-29 02:35

I am having issues with google chrome not rendering svg with an img tag. This happens when refreshing the page and initial page load. I can get the image to show up by \"

21条回答
  •  独厮守ぢ
    2020-11-29 03:05

    i came here because i had the same problem, when i inspect the element i can see the file, but on the site i can't (even when using localhost)

    the answer to my problem was in saving the SVG file. If you saved it from illustrator make sure to click 'embed' and not 'link'. as link will just refer to your local files rather than include the data (If i understand it correctly). enter image description here

    I read about it on the adobe website which has some other useful tips for exporting http://www.adobe.com/inspire/2013/09/exporting-svg-illustrator.html

    This worked for me, hope it was useful.

提交回复
热议问题