简体   繁体   English

在 Google Chrome 上打开 HTML 时图像未出现 - 检查获取错误代码“net::ERR_FILE_NOT_FOUND”时

[英]Images not appearing when opening HTML on Google Chrome - when inspecting getting error code "net::ERR_FILE_NOT_FOUND"

I am new to coding and currently taking a bootcamp right now learning front-end development, coding with HTML and CSS.我是编码新手,目前正在参加训练营学习前端开发,使用 HTML 和 CSS 进行编码。 I'm currently building my website and noticed I cannot see any of my images when running the code in google chrome.我目前正在构建我的网站,并注意到在 google chrome 中运行代码时我看不到任何图像。 The strange part is that my tutor in my course can view the images on her computer, however I cannot see my own images when running on my browsers both Google Chrome and Safari.奇怪的是,我课程中的导师可以在她的计算机上查看图像,但是当我在 Google Chrome 和 Safari 浏览器上运行时,我看不到自己的图像。 When going to "inspect" I notice the images are showing an error code "Failed to load resource: net::ERR_FILE_NOT_FOUND" however, they the path is correct.当进行“检查”时,我注意到图像显示错误代码“无法加载资源:net::ERR_FILE_NOT_FOUND”,但是它们的路径是正确的。 See screenshot attached here.请参阅此处附上的屏幕截图。

I'm unsure what is going on and would appreciate any help!我不确定发生了什么,如果有任何帮助,我将不胜感激!

screenshot of issue问题截图

you have to enter the proper URL paths in the src attribute of the img tags OR the image is not in the directory where it is supposed to be您必须在 img 标签的 src 属性中输入正确的 URL 路径,或者图像不在它应该在的目录中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM