Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JavaFx CSS分析意外标记时出错';:';at[15,21]_Java_Css_Javafx - Fatal编程技术网

JavaFx CSS分析意外标记时出错';:';at[15,21]

JavaFx CSS分析意外标记时出错';:';at[15,21],java,css,javafx,Java,Css,Javafx,我无法解释为什么第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 /* Ultramarin

我无法解释为什么第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;
}
你可以看到我的第15行没有变成蓝色:
第14行末尾缺少分号。您看到的错误可能与此有关。

第14行末尾缺少分号。您看到的错误可能与此有关。

您缺少一个
。应该是
#3F26BF@Tushortz真的很抱歉。我将删除此问题,谢谢。在这里呆了一个小时[15,21]表示第15行,位置21。您缺少一个
。应该是
#3F26BF@Tushortz真的很抱歉。我将删除此问题,谢谢。在这里呆了一个小时[15,21]表示第15行,位置21。