【问题标题】:Java CSS fx-focus-color not showing up in autocomplete list?Java CSS fx-focus-color 未显示在自动完成列表中?
【发布时间】:2018-03-07 06:44:01
【问题描述】:

我目前正在尝试使用 CSS 从我的 JavaFX 应用程序的文本区域中删除焦点颜色,但是,它似乎不在我可以使用的样式的自动完成列表中。为什么会这样?Autocomplete list without -fx-focus-color

【问题讨论】:

    标签: java css javafx


    【解决方案1】:

    您应该查看this 以获取您可以使用的支持样式列表。

    在 JavaFX 中,focused 是一个伪类。因此,您应该执行类似的操作:

    .ingredients:focused {
        -fx-background-color: transparent; /* Or the color when not focused */
    }
    

    【讨论】:

      猜你喜欢
      • 2017-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多