0
我无法解释为什么第15行有错误时,第21行没有这样的错误。清理和重建不起作用。JavaFx CSS在[15,21]解析意外标记':'时出错
我的CSS文件:
#i-will-do-it
{
-fx-fill: #3AA8C1; /* moonstone */
/* -fx-fill: #6F2DA8; /* Grape */
}
#background
{
-fx-background-color: #353839; /* Onyx */
}
#minute
{
-fx-stroke: #3F26BF /* Ultramarine Blue */
-fx-stroke-width : 3; /* THIS IS LINE 15 */
}
#seconds
{
-fx-stroke: #FD0E35; /* scarlet */
-fx-stroke-width : 0.8; /* THIS IS LINE 21 */
}
#hour
{
-fx-stroke: #3F26BF; /* Ultramarine Blue */
-fx-stroke-width : 5;
}
你缺少';'。应该是'#3F26BF;' – Tushortz
@Tushortz真的很抱歉。我将删除这个问题,并表示感谢。在这里等了一个小时 –
[15,21]意思是第15行,第21位。 –