我该如何修复无法加载资源状态 404 github 页面
how can i fix failing to load resource status 404 github pages
我已经在 Github 上部署了我的项目,它给出了这个
控制台错误,我该如何解决?
和link到git是:https://blessja.github.io/Bottelary/
更改 index.html
中不正确的文件 URL。
例如,你写了<link rel="stylesheet" href="/css/main.css">
,目标是https://blessja.github.io/css/main.css
, which gives a error 404.
Instead type <link rel="stylesheet" href="./css/main.css">
or <link rel="stylesheet" href="css/main.css">
which will get you to the right file, i.e. https://blessja.github.io/Bottelary/css/main.css
并尝试更改 index.html
文件中提到的所有不正确的文件路径。
我已经在 Github 上部署了我的项目,它给出了这个
控制台错误,我该如何解决?
和link到git是:https://blessja.github.io/Bottelary/
更改 index.html
中不正确的文件 URL。
例如,你写了<link rel="stylesheet" href="/css/main.css">
,目标是https://blessja.github.io/css/main.css
, which gives a error 404.
Instead type <link rel="stylesheet" href="./css/main.css">
or <link rel="stylesheet" href="css/main.css">
which will get you to the right file, i.e. https://blessja.github.io/Bottelary/css/main.css
并尝试更改 index.html
文件中提到的所有不正确的文件路径。