<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 3 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 3 年前。
我使用 HTML 和外部 CSS 制作了一个作品集网站。我使用了一个相对链接,据我所知,它的格式正确。当我在 Chrome 中从我的编辑器中打开它时,一切都是应该的,但是当推送到 GitHub 页面时,我的网站失去了 CSS 样式。谁能帮我弄清楚我在这里做错了什么? 提前致谢!
最佳答案
你在样式引用上有一个小错误
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
在你的代码中/CSS/中的链接是大写的。就是这样。
关于html - 为什么我的 CSS 样式在上传到 GitHub 页面后没有应用于我的 HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59380336/
相关文章:
html - 在输入类型文本上显示 "small popup"的最佳方式
github - 当已经拥有自定义 CNAME 时,是否可以在多个存储库上使用 Github 页面?
jekyll - bundle exec jekyll serve > Dependency Error : Yikes! 看起来你没有 jekyll-commonmark-ghpages
javascript - 关闭前验证 ngDialog openConfirm 中的表单
javascript - 如何在 Django Javascript 中打开编辑部分而不刷新每个帖子的页面?
javascript - 如何让GitHub Pages Markdown支持美人鱼图?
python - (初学者)第一个 Django Web 应用程序 - models.py