问题
I got a problem with SVG backgrounds.
When I run my website locally on IE9 the svg-gradient shows. But when I upload my site the my webhost the gradients just don't work.
How do I fix this?
回答1:
Solved it.
I added a .htaccess file in the same folder as my .svg files with the following content:
AddType image/svg+xml svg
AddType image/svg+xml svgz
来源:https://stackoverflow.com/questions/5994230/svg-gradient-backgrounds-doesnt-work