WEC7 Web服务器是否支持SVG文件 [英] Does WEC7 webserver support SVG files

查看:103
本文介绍了WEC7 Web服务器是否支持SVG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部;

我想看看嵌入WEC7的网络服务器是否支持使用.SVG文件?如果是这样,它是如何在visual studio平台构建器中启用的?在网页屏幕上是否有任何使用示例?

I am looking to see if the webserver in WEC7 embedded supports the use of .SVG files? If so, how is it enabled in visual studio platform builder? Are there any examples of use in a web screen?

谢谢,杰夫

推荐答案

SVG图像文件只是普通的XML文件。它必须得到网络浏览器(或你计划用来渲染它的任何东西)的支持,而不是网络服务器。

SVG image files are just plain XML files. It has to be supported by web browsers (or anything you plan to use to render it) instead of web server.

要用它构建网站,通常需要使用图像编辑器。 (除非你正在渲染图形,在这种情况下你可能想要使用你的代码生成数据XML文件,并使用特制的

XSLT
文件)然后再次支持SVG和XSLT由Web浏览器而不是服务器提供(与Web服务器配置相关的唯一事情是提供正确的MIME类型这两种文件类型)。

And to build websites with it, generally you need image editor instead. (unless if you're rendering graph, in that case you may want to use your code to generate data XML file with specially crafted XSLT file) Then again, support of both SVG and XSLT are provided by web browser instead of server (the only thing related to web server configuration is to provide correct MIME type to these 2 file types).

要在网上使用它,只需在"src"上使用它即可。正常  IMG标签与普通图像的关系。 

To use it on web, just use it on "src" of normal IMG tag as what you'd do with ordinary images. 


这篇关于WEC7 Web服务器是否支持SVG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆