[英]Problems seeing CSS and JS in GitHub Pages, but working well in VS Code
I am working in a page for a project and I used a template that included CSS and JS files.我在一个项目的页面上工作,我使用了一个包含 CSS 和 JS 文件的模板。 I worked the code in Visual Studio Code and it worked well locally in my computer.
我在 Visual Studio Code 中编写代码,它在我的计算机本地运行良好。 I used GitHub Pages in order to share it but there are elements missng like the button to show/hide the menu, the background, and arrows.
我使用 GitHub Pages 来分享它,但缺少一些元素,例如显示/隐藏菜单的按钮、背景和箭头。
Here is my repository https://github.com/azu-any/reafo.git这是我的存储库https://github.com/azu-any/reafo.git
This is how it should look: Using VS Code它应该是这样的:使用 VS 代码
And how it looks using GitHub: GitHub Pages以及使用 GitHub 的外观: GitHub Pages
Thanks in advance!提前致谢!
PS.附言。 I've already checked the url's and they work fine, otherwise other styles would not function.
我已经检查了 url,它们工作正常,否则其他样式将无法运行。
Files with names starting with underscore, like _styles_js.js
are blocked in GitHub Pages .名称以下划线开头的文件,如
_styles_js.js
在 GitHub Pages 中被屏蔽。
You have two options:你有两个选择:
.nojekyll
file in the root of your repository.nojekyll
文件_
prefix from filenames_
前缀
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.