Any ideas why patterned SVG file is showing up blank in the browser?

后端 未结 3 1836
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 08:07

I have an svg file that I created in Illustrator that consists of a pattern - it was made using the swatch tool. When I try and load it locally it shows up blank in the browser

3条回答
  •  情深已故
    2021-01-25 08:46

    Hope you got this sorted, but for anyone else having this issue: Check the saving as .svg settings within Illustrator.

    The standard settings gave me a blank .svg, but when I messed with the settings (Font type: SVG, CSS Properties: Style Attribute, Output fewer elements unchecked, Include XMP checked) it worked fine.

    On a side note, using .svg is fine on a website, as long as you have a fallback for browsers that don't support them. I believe modernizr (http://modernizr.com/) covers setting that up.

提交回复
热议问题