发布网站

发布于 2024-08-30 18:29:47 字数 56 浏览 2 评论 0原文

当我们发布 Web 应用程序时,存储在物理文件夹中的图像不会在实际运行时显示。如何解决这个问题呢?

When we publish web application, images store in physical folder are not displaying on actual runtime. How to solve this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

淡忘如思 2024-09-06 18:29:47

检查是否正在发送图像的 HTTP 请求,以及是否发送到正确的地址。如果是,请检查您的 Web 服务器日志,以确定这些请求最终到达的位置,以及文件本身是否位于具有适当读取权限的正确位置。

Check if HTTP requests are being sent for the images, and if they are sent to the correct address. If they are, check your web server logs to identify where those requests end up, and whether the files themselves are present in the right location with appropriate read permissions.

思念满溢 2024-09-06 18:29:47

您需要使用相对路径而不是完全限定路径来引用图像。

<image src="../images/test.png" />

You need to reference the images with a relative path rather than the fully qualified path.

<image src="../images/test.png" />
烟火散人牵绊 2024-09-06 18:29:47

您可以使用完整 HTTP 路径、相对路径或绝对路径引用图像,但它们必须正确才能显示图像。

确保您没有“file:\C:.....\test.png”作为 IMG SRC。

You can refer the images with Full HTTP Path or relative path or absolute path but they have to be correct to be able to show images.

Make sure that you do not have "file:\C:.....\test.png" as IMG SRC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文