svg is not working on IIS webserver on localhost

后端 未结 5 1516
天命终不由人
天命终不由人 2020-12-14 14:30

I\'m trying to set a \".svg\" image as background-image using css, but it is not working. The url is valid and returns 200 status code and works on \".png\" images.

5条回答
  •  悲哀的现实
    2020-12-14 15:12

    In my case, I included all of the mime-types I wanted in the applicationHost.config file (which is usually located at C:\Windows\System32\inetsrv\config) under the scope, like Joachim Isaksson mentioned. This allows all of my IIS sites to inherit the same mime-types, and gives you one location to change them if something goes wrong.

提交回复
热议问题