图像无法显示在Github Pages中? [英] Images not displaying in Github Pages?

查看:113
本文介绍了图像无法显示在Github Pages中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Github项目中添加了一个项目站点.但是有些照片没有显示在网站中.

I added a project site to my Github project. But some photos are not displaying in the site.

图片代码:

<img src="img/screenshot2.PNG" class="img-responsive" alt=""> </div>

文件夹结构(img是一个文件夹):

folder structure (img is a folder):

img
    Screenshot2.png
index.html

我尝试使用.png.PNG(一些较早的SO答案建议这样做),但它们都不起作用

I tried with .png and .PNG (some earlier SO answers suggested it) and none of them work

有解决方案吗?

推荐答案

没关系,我解决了.

如果有人遇到相同的问题.

If anyone has the same problem.

GitHub页面区分大小写.不仅用于文件夹,还用于图像名称.

GitHub Pages are case sensitive. Not only for folders, but also for image names.

这篇关于图像无法显示在Github Pages中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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