我现在在 public_html 中有 index.php
include("/nfs/.../JohnDoe/contents/section1.html")
然后我在 /nfs/.../JohnDoe/contents/ 下有“section1.html”并且它有
<img src="/nfs/.../JohnDoe/contents/image.jpg">
我把“image.jpg”放在/nfs/.../JohnDoe/contents/下。然后,网页确实显示“section1.html”但不显示“image.jpg”。
另一个想法可能是我可以使用
include("/nfs/.../JohnDoe/contents/image.jpg")
在 section1.html 中。但接下来的问题是“如何以这种方式设置 image.jpg 的‘宽度’和‘高度’?”