[英]JavaFx CSS Error parsing Unexpected token ':' at [15,21]
當第21行沒有此類錯誤時,我無法解釋為什么第15行存在錯誤。清理和重建無濟於事。
我的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;
}
第14行的末尾缺少分號。您所看到的錯誤可能與此有關。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.