简体   繁体   English

注释上的CSS未知输入

[英]CSS Unknown input on a comment

I am working on a project on codepen, but I keep getting the same css error on a comment at the beginning. 我正在使用Codepen开发一个项目,但一开始我在评论中始终遇到相同的CSS错误。 Keep in mind most of this is not my code, just I saw it and wanted to make it interactive, so I forked it. 请记住,大多数不是我的代码,只是我看到了它并希望使其具有交互性,所以我将其分叉。 Here is the link to the pen: https://codepen.io/rjacoby/pen/xXMbeQ?editors=0100 这是笔的链接: https : //codepen.io/rjacoby/pen/xXMbeQ?editors=0100

/* 60 column grid. */
/* 1u key (standard keysize) = 4 columns */
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");

The error happens between lines 1 and 2, or after 3 if I delete the first two. 该错误发生在第1行和第2行之间,如果删除前两行,则发生在3行之后。 Also this worked a couple of minutes ago and I haven't changed anything. 几分钟前这也起作用了,我什么都没改变。 Here is the error: <css input>:21:3: Unknown word 这是错误: <css input>:21:3: Unknown word

I found my error, a missing colon on line 21. Just a simple syntax error, but I could not find it for some reason earlier. 我发现了我的错误,在第21行缺少一个冒号。这只是一个简单的语法错误,但是由于先前的某种原因我找不到它。 Taking a break helped. 休息会有所帮助。

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

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