gpt4 book ai didi

css - netbean 中的意外 token NL 和 LBRACE 错误

转载 作者:行者123 更新时间:2023-11-28 10:18:48 25 4
gpt4 key购买 nike

我正在使用 netbean7.3 并在下面的代码中

@keyframes myfirst
{
from {box-shadow: 4px 4px 4px #666666;border: 1px solid #444444;}
to {box-shadow: 4px 4px 4px #DCDCDC;border: 1px solid #d6d6d6;}

}

我有错误

enter image description here

但是可以通过在@keyframes myfirst

之后使用 { 来解决

enter image description here

我只想知道第一个(错误一个)和另一个之间有什么区别,因为 { 的 AFAIK 位置无关紧要?

最佳答案

好吧,你的语法都是正确的(你可以检查 here )因为 W3C 只将关键帧声明定义为

[...] the keyword "@keyframes", followed by an identifier giving a name for the animation (which will be referenced using 'animation-name'), followed by a set of style rules (delimited by curly braces).

比照。 http://www.w3.org/TR/css3-animations/#keyframes

所以这很可能是 netbeans 的一个错误

编辑:关键帧声明语法是

KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes_blocks '}' S*;

S 定义为(#x9 | #xA | #xC | #xD | #x20)+,所以它包括“空格”、“制表符”、 “换行”、“回车”和“换页”。

netbeans NL 是否在这个集合中?

关于css - netbean 中的意外 token NL 和 LBRACE 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14950486/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com