条形图在Local主机上工作,但在托管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/
The bar chart is working fine in localhost but after hosting on gitpage it's not showing properly. What to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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