Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
正确的图像/svg+xml验证_Xml_Svg - Fatal编程技术网

正确的图像/svg+xml验证

正确的图像/svg+xml验证,xml,svg,Xml,Svg,我正在构建一个svg映射,当我尝试在W3C上验证时,它给了我两个警告。有谁能帮我修复这些警告吗。?谢谢 <?xml version="1.1" encoding="UTF-8" standalone="no" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg viewBox="0 0 1000 2112

我正在构建一个svg映射,当我尝试在W3C上验证时,它给了我两个警告。有谁能帮我修复这些警告吗。?谢谢

<?xml version="1.1" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg  viewBox="0 0 1000 2112" style="" xmlns="http://www.w3.org/2000/svg" version="1.1">

    <path ...> </path>
</svg>

这条信息已经告诉你出了什么问题——那么,到目前为止,你在试图修复它方面做了什么?你之前有没有值得一提的研究?结果如何?您的web服务器缺少此mime类型图像/svg+xml信息。发送正确的mime头或将其添加到服务器的配置文件中。Apache使用,而nginx使用
If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mml for MathML.
You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.