有人能帮我在JavaFX项目中更改大小写吗?我试着浏览找到解决方案,但是我找不到。请看下面的代码,我正在尝试但是无法得到结果。
.text {
-fx-font-family: "Arial";
-fx-font-size: 24;
-fx-text-fill: #263248;
-fx-padding: 10 20 10 20;
-fx-cursor: hand;
-fx-text-transform: uppercase; /* this property is not working */
}
任何帮助都将不胜感激!谢谢!
-fx-text-transform
是 JavaFX 的 CSS 属性吗?我不这么认为。 - ItachiUchihainitialize(..)
内进行必要的代码安排。有关更多信息,请查看精通FXML。 - ItachiUchihatoUpperCase()
。一个简单的示例在这个答案中。 - ItachiUchiha