我的网站在 git hub 页面上看起来与我的本地主机上不同[已关闭]

问题描述 投票:0回答:1

我的项目在我的本地设备上完美运行,但是当我将其上传到 git hub 时,它看起来有所不同。 我创建了石头剪刀布游戏,石头图像不可见,并且它周围的边框缩小了,而布和剪刀却完美无缺 所以我该怎么做? https://github.com/Rimasabutaha/Rock-paper-scissors

岩石图片应该看起来和剪刀和布的图片以及边框一模一样 这就是我的网站在 github 上的样子 https://rimasabutaha.github.io/Rock-paper-scissors/

html github-pages
1个回答
0
投票

这里有一个小错字,在代码中您使用的是 rock.png,但在您提到 Rock.png 的文件夹中,您必须更新它。

 <div class="choices">
    <div class="choice" id="r">
        <img src="images/rock.png" alt="">
    </div>
    <div class="choice" id="p">
        <img src="images/Paper.png" alt="">
    </div>
    <div class="choice" id="s">
        <img src="images/Scissors.png" alt="">
    </div>
</div>

我认为现在应该可以了。

© www.soinside.com 2019 - 2024. All rights reserved.