SCSS样式未应用于文件

发布于 2025-01-24 18:04:55 字数 343 浏览 1 评论 0原文

此处显示的图像

我的SCSS样式没有被应用。请帮助我找出问题。我已经附上了项目的GitHub链接以及控制台的图像。

https://github.com/webdevelicer1213/saasproject

感谢。

Image Shown here

My scss styles are not being applied. Please help me figure out the issue. I have attached the github link of the project and also the image of the console.

https://github.com/webdeveloper1213/saasProject

Thanks.

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

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

发布评论

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

评论(2

铃予 2025-01-31 18:04:55

您正在将=符号周围放置在HTML属性中。你不应该那样做。删除=两侧的额外空间。

这里的真正问题是,您有一个链接Ref的错别字,链接rel。因此,浏览器不知道您的意思是指示样式表链接。

将来,您可以使用html验证器来捕获这样的错误: https://validator.w.org/

You are putting spaces around the = signs in your HTML attributes. You shouldn't do that. Remove the extra spaces on both sides of =.

The real problem here is that you have a typo of link ref for link rel. So the browser doesn’t know that you mean to indicate a stylesheet link.

In the future you can catch errors like this by using an HTML validator: https://validator.w3.org/

伴随着你 2025-01-31 18:04:55

我刚刚检查了您的索引文件更新您的代码

<link ref = "stylesheet" href = "/dist/style.css" />

这个

<link rel="stylesheet" href="./dist/style.css">

I just checked your index file update your code
from this

<link ref = "stylesheet" href = "/dist/style.css" />

to this

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