简体   繁体   English

CSS解析颜色值时出错

[英]CSS Error in parsing value for color

I don't what the problem is. 我不是问题所在。 I have another selector that has that kind of property and value as well but I'm getting error only on this one. 我还有一个选择器也具有这种属性和值,但是我只在这个选择器上出错。

屏幕截图

The probable reason is that you have a NO-BREAK SPACE U+00A0 after the colon. 可能的原因是冒号后面有一个NO-BREAK SPACE U + 00A0。 Replace it by a normal SPACE (or remove it). 将其替换为普通的SPACE(或将其删除)。

NO-BREAK SPACE is not a whitespace character in CSS, so it is not skipped – instead, it will be parsed as the first character of a color value, leading to a syntax error. NO-BREAK SPACE在CSS中不是空格字符,因此不会被跳过-而是将其解析为颜色值的第一个字符,从而导致语法错误。 (That's what “found ' '” refers to in the error message.) (这就是错误消息中“ found''”的含义。)

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

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