简体   繁体   中英

SVG does not display correctly, iOS Safari

I was supplied a logo for a website in .ai format, which I cropped and saved as SVG1.1, and placed this on multiple places on a friend's Shopify store.

Image in question (view this in Safari for iOS)

Screenshot of the image fault on the site: i.stack.imgur.com/HmsIB.png

Link to actual page here: bambooboss.com/pages/about-us

The "Panda Head" image under the first photo is half blacked out when viewed with Safari, latest version of iOS on my iPhone 5. While it looks quite cool, it's definitely not anything like my friend's original creative vision...

I tried another answer here on SO, where they tried surrounding all LinearGradient with <defs> tags, which I did to the current image - but to no avail...

Anyone have a clue what's going on? Is it compatibility? or did something go wrong while saving to SVG from .ai?

Change the following line to:

.st38{opacity:.08;fill:url(#XMLID_108_);}

ie remove the 8.00000e-02

also ... run this through an optimiser like SVGOMG ... if displayed at the small size this is far too complicated and large. Simplify all the gradients, maybe even merge them all into one. Should be able to get the ungzipped version down an order of magnitude from 35kb. Lovely logo though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM