SVG渐变背景不起作用 [英] SVG gradient backgrounds doesn't work
本文介绍了SVG渐变背景不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题与SVG的背景。
I got a problem with SVG backgrounds.
当我在IE9上运行我的网站在本地SVG梯度节目。但是,当我上传我的网站空间商的梯度只是不工作。
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?
推荐答案
解决了这个问题。
我添加在同一文件夹中的.htaccess文件我用下面的内容.SVG文件:
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
这篇关于SVG渐变背景不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文