SVG gradient backgrounds doesn't work

淺唱寂寞╮ 提交于 2020-01-06 10:53:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!