简体   繁体   English

如何停止 Laravel 错误(预期规则或选择器)

[英]How to stop laravel error(at-rule or selector expected)

Error on public/app/app.css public/app/app.css 上的错误

While i was just working on other stuff i found the error on this page.当我只是在做其他事情时,我发现了这个页面上的错误。

I think you are missing selector, you just write property and value of CSS,我认为您缺少选择器,您只需编写 CSS 的属性和值,

h1 {
  font-family: Arial, Helvetica, sans-serif;
  text-size-adjust: 80%;
}

h1 is selector, you can write here your class name or id name according to your project or program need. h1是选择器,你可以根据你的项目或程序需要在这里写你的类名或id名。

comment this line has solved the problem (vscode says it is a problem, not me) for me :评论这一行已经解决了我的问题(vscode 说这是一个问题,而不是我):

/* @charset "UTF-8"; */

NB: I think your css file is supposed to be in public/css/, not in public/app.注意:我认为您的 css 文件应该在 public/css/ 中,而不是在 public/app 中。 Ideally and to respect the semantics, of course.理想情况下,当然要尊重语义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM