JavaFX组合框css样式

tom*_*fen 5 css combobox javafx button styling

我正在尝试通过css在JavaFX中自定义一个组合框.我无法自定义右侧的"箭头按钮"(我希望它消失,或者有自定义图形).

我一直在检查默认的caspian.css,但无论我对.combo-box部分做了什么修改,箭头按钮都不会受到影响.

知道在哪里可以编辑吗?

Ale*_*dre 5

CSS在样式表中使用以下内容将删除所有ComboBox箭头

.combo-box .arrow, .combo-box .arrow-button{
    -fx-background-color: transparent;
}
Run Code Online (Sandbox Code Playgroud)