我想使用 CSS 文件设置 CalendarTimeTextField Popup 控件的字体样式。
以下条目对我不起作用:
.CalendarTimeTextFieldSkin_popup {
-fx-text-fill: white;
-fx-font-style: italic;
}
设置字体类型有效,更改文本颜色则无效。
感谢您对我的支持GGK
文本使用
文本节点 (https://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#text( 呈现,因此请使用 -fx-fill 和/或 -fx-stroke。