如何解决为什么我的图像没有显示在我的Git Hub页面中?
我刚刚构建了这个github页面,但是由于某些原因我的图像没有随页面一起加载。
这是my site
的链接这是我的repo
请注意,我将所有图像都放在一个名为“ _imagens”的文档中,并且在我的文档中正确调用了它。
无论如何,我在这里称呼我的图片
在第一页上:
/*Configuracoes da imagem de fundo*/
body {
background-image: linear-gradient(rgba(0,0.5),rgba(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上所做的,但是我不知道会发生什么。
解决方法
我在using a relative path之前提到过,所以请尝试:
<img src="./_imagens/chapeu.png" width="75px" id="chapeu">
或
<img src="./projeto poli junior/_imagens/chapeu.png" width="75px" id="chapeu">
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。