代码之家  ›  专栏  ›  技术社区  ›  Ishan Srivastava

JavaFx CSS在分析[15,21]处的意外标记“:”时出错

  •  0
  • Ishan Srivastava  · 技术社区  · 9 年前

    #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号线没有变蓝: enter image description here

    1 回复  |  直到 9 年前
        1
  •  2
  •   Uwe    9 年前

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