【发布时间】: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。
【问题讨论】:
-
2 分钟的谷歌搜索让我知道了这个:gotmetoo.blogspot.fr/2013/07/…。可能是你要找的
-
太棒了!非常感谢!
标签: html simplehttpserver