html - 为什么我的图像没有显示在我的 Git Hub 页面中?
问题描述
我刚刚构建了这个 github 页面,但是由于某种原因,我的图片没有与页面一起加载。
这是我网站的链接
这是我的回购
请注意,我将所有图像都放在了一个名为“_imagens”的文档中,并且我在 my.
无论如何,这里是我调用我的图像的地方
在第一页:
/*Configuracoes da imagem de fundo*/
body {
background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)) ,url("_imagens/fundo.jpg");
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center center;
height: 100vh;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
在第二页:
<header id="cabecalho">
<img src="_imagens/poli.png" width="75px" id="poli">
<h1>
Notas Poli
</h1>
<img src="_imagens/chapeu.png" width="75px" id="chapeu">
</header>
它们在我的计算机上运行良好,所以我认为这是我在 github 上所做的,但我不知道会发生什么。
解决方案
我在使用相对路径之前提到过,所以试试:
<img src="./_imagens/chapeu.png" width="75px" id="chapeu">
或者
<img src="./projeto poli junior/_imagens/chapeu.png" width="75px" id="chapeu">
推荐阅读
- c++ - Visual Studio Project 2019 项目仍需要 msvcr120d.dll
- java - 获取表格 DB XXX.0E0(XX 代表数字)
- solr - 如何在 solr 中为 txt(或配置)文件中的关键字应用提升
- csv - 合并大的 csv 文件
- python - 附加键:未添加到 Python 字典的值
- c - 相同的 srand 种子在不同的计算机上产生不同的值
- javascript - 无法退出 do while 循环
- microsoft-graph-api - ServiceNow 的 Microsoft Graph API 错误
- python - 使用 Pytorch 重启时启动内核 Spyder 时发生错误
- bash - 而是在 bash 中通过所有文件在 for 循环中使用 awk - 仅在 awk 中执行某些操作