我试图在JavaFX中更改ChoiceBox的TextColor.
这是我的css文件:
.choice-box{
-fx-background-color:
#000000,
linear-gradient(#7ebcea, #2f4b8f),
linear-gradient(#426ab7, #263e75),
linear-gradient(#395cab, #223768);
-fx-padding: 3 10 4 20;
-fx-text-fill: white;
-fx-font-size: 12px;
}
Run Code Online (Sandbox Code Playgroud)
这是我的选择框的截图:

-fx-text-fill: white;适用于按钮,但不适用于选择框.为什么?
如何更改选择框中文本的颜色?