asp.net mvc - SVG files in VS2012 -
When browsing my MVC 4 site, my SVG files are not displayed properly. They work fine in other projects and fix the images on the same project when ASP.NET is hosted in IIS rather than the development server. I tried to add MIME using the code given below, but this is nothing Revenge. It seems that it was literally all night long Really confused The best way to call SVG files is by: < Pre> & lt; StaticContent & gt; & Lt; MimeMap file extension = ".svg" mimeType = "image / svg + xml" /> & Lt; / staticContent & gt;
& lt; Object data = 'svg-test.svg' type = 'image / svg + xml' width = '500' height = '500' / & gt;
Comments
Post a Comment