0

我已经在 Github 上部署了我的项目,它提供了这个

img_error

控制台上的错误,我该如何解决?

和 git 的链接是:https ://blessja.github.io/Bottelary/

github 仓库:https ://github.com/blessja/Bottelary

4

1 回答 1

1

更改index.html.

例如,您已将<link rel="stylesheet" href="/css/main.css">哪些目标写入https://blessja.github.io/css/main.css,这会给出错误 404。
而是键入<link rel="stylesheet" href="./css/main.css">or <link rel="stylesheet" href="css/main.css">which 将使您进入正确的文件,即https://blessja.github.io/Bottelary/css/main.css

并尝试更改文件中提到的所有不正确的文件路径index.html

于 2021-07-23T13:50:28.017 回答