[英]SVG gradient backgrounds doesn't work
I got a problem with SVG backgrounds. 我遇到了SVG背景问题。
When I run my website locally on IE9 the svg-gradient shows. 当我在IE9本地运行我的网站时,svg-gradient显示。 But when I upload my site the my webhost the gradients just don't work. 但是当我上传我的网站时,我的网站主机渐变只是不起作用。
How do I fix this? 我该如何解决?
Solved it. 解决了它。
I added a .htaccess file in the same folder as my .svg files with the following content: 我在.svg文件所在的文件夹中添加了一个.htaccess文件,其中包含以下内容:
AddType image/svg+xml svg
AddType image/svg+xml svgz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.