【问题标题】:SimpleHTTPServer figure not displayedSimpleHTTPServer 图未显示
【发布时间】:2013-10-11 10:48:37
【问题描述】:

我正在使用 SimpleHTTPServer(在文件夹 output 中调用):

python -m SimpleHTTPServer 8080

我有以下文件夹结构:

/output/
   images/
       figure.svg
   index.html

index.html(除其他外):

<div class="figure align-right">
   <object data="images/figure.svg" type="image/svg+xml"></object>
   <p class="caption">Some caption.</p>
   <div class="legend">Something</div>
</div>

现在我在http://127.0.0.1:8080/index.html 上查看index.html 并没有显示该数字。为什么?服务器找到该文件,因为它没有提供404 代码。

有趣的是,当我在浏览器中将index.html 作为本地文件(不是通过http 服务器)打开时,图像就会出现。

如果这很重要,我正在使用Opera

【问题讨论】:

标签: html simplehttpserver


【解决方案1】:

按照 cmets 中的建议,在此处找到解决方案: http://gotmetoo.blogspot.fr/2013/07/python-simple-http-server-with-svg.html

【讨论】:

    猜你喜欢
    • 2016-03-11
    • 1970-01-01
    • 2017-11-14
    • 2015-04-27
    • 2012-07-05
    • 1970-01-01
    • 2017-11-19
    • 2014-07-07
    相关资源
    最近更新 更多