0

假设文件夹 B 在文件夹 A 内。文件
夹 B 包含:
    index.shtml
    a.html
    image.png
并且,在 index.shtml 中,我包含一行

<!--#include file=“a.html” -->    

并且,image.png 在 a.html 中被引用

<image src=“image.png”&gt;    

当所有内容都上传到服务器并在浏览器中查看 index.shtml 时,它会正确显示包含 image.png 的 a.html 的内容。

接下来,我将a.html和image.png从文件夹B中移出,放到文件夹A中。即文件夹A包含
    a.html
    image.png
    文件夹B
文件夹B包含
    index.shtml

现在在index.shtml中,如下行我用了:

<!--#include virtual=“../a.html” -->     

当所有内容都上传到服务器并在浏览器中查看 index.shtml 时,它会正确显示 a.html 的内容,只是 image.png 没有出现并显示断开的链接图像。

如何修复损坏的图像,以便 image.png 显示在 index.shtml 中?

4

0 回答 0