【发布时间】:2018-11-11 23:20:49
【问题描述】:
我下载 this free theme 以便在我的 WebStorm 角度项目中使用它,但我收到此错误:Failed to load resource: the server responded with a status of 404 (Not Found)
并且即使路径正确也没有加载图像。谁能帮我解决这个问题?
这是一个sn-p的代码:
<a class="navbar-brand brand-logo" href="index.html"><img src="images/logo.svg" alt="logo"/></a>
<a class="navbar-brand brand-logo-mini" href="index.html"><img src="images/logo-mini.svg" alt="logo"/></a>
PS: 我确实在加载 CSS 和 JavaScript 文件时遇到了问题,但我已经通过在 css 链接中添加 type="text/html" 和 type="application/json" 解决了这些问题JavaScript 链接。您认为这可能是 JSON 问题吗?
【问题讨论】:
-
你的代码怎么样,在你加载那些没有找到的图片时显示一些代码。
-
@CassianoMontanari 我用一些代码编辑了我的问题
-
使用/images/logo-mini.svg,app文件夹是你的根文件夹,所以以/开头
-
您确定图片已下载吗?检查浏览器的网络标签?
-
无法获取 /images/dashboard/img_4.jpg
标签: html css json bootstrap-4