图像未在我的GitHub网页上在线加载 [英] Images aren't loading online on my GitHub web page

查看:63
本文介绍了图像未在我的GitHub网页上在线加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitHub不会将图像加载到我的图像文件夹中.它可以很好地加载背景图像,并且当我离线启动页面时可以加载所有图像.我确保图像仅以字母开头,并尝试将图像文件名与 index.html 文件中的路径名区分大小写,但是仍然没有运气.

网站:

PS:英雄是一款很棒的游戏.

GitHub won't load the images in my images folder. It loads the background image fine, and all the images load when I launch the page offline. I've made sure the images only begin with letters, and tried matching the image file names with the path names in the index.html file case sensitive-wise but still no luck.

website: http://rpboyer15.github.io/sounds-of-the-storm/

repo: https://github.com/rpboyer15/sounds-of-the-storm

解决方案

Paths are case sensitive. For example in your repository, you have brightwing.jpg and in your HTML you have Brightwing.jpg which will result in a 404. If you use the Chrome Dev Tools and adjust the URL using Inspect Element and it will load properly.

PS: Heroes is an awesome game.

这篇关于图像未在我的GitHub网页上在线加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆