条形图在Local主机上工作,但在托管GitPage后不工作

发布于 2025-01-29 02:11:20 字数 549 浏览 5 评论 0原文

localhost

gitpage

条形图在Localhost中工作正常,但是在托管GitPage之后,它的显示不正确。该怎么办?

repo: https://github.com/mzs21/bar-chart

live live =“ https://mzs21.github.io/bar-chart/” rel =“ nofollow noreferrer”> https://mzs21.github.io/bar-chart/

Localhost

Gitpage

The bar chart is working fine in localhost but after hosting on gitpage it's not showing properly. What to do?

Repo: https://github.com/mzs21/bar-chart

Live: https://mzs21.github.io/bar-chart/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梅窗月明清似水 2025-02-05 02:11:20

JS似乎运行正常,并且该应用程序运行正常,但我认为CSS缺失,所以我完全理解您的困惑!

您正在使用尾风,因此我将假设部署的GIT页面不会触发尾风的构建过程。由于在本地透明地完成,因此您不会“托管”您会看到的CSS。

我知道发布链接很调皮noreferrer”> https://harrywang.medium.com/introducing-tailpages-tailwind-github-pages-89903c52d3ec

The JS appears to be working ok and the app is running OK but I think the CSS is missing, so I completely understand your confusion!

You're using Tailwind so I'm going to assume that the Git pages deploy does not trigger the Tailwind build process. As that's done transparently locally you would not be 'hosting' the CSS that you would see.

I know posting links is naughty but as you're new have a read of this blog: https://harrywang.medium.com/introducing-tailpages-tailwind-github-pages-89903c52d3ec

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文