我有一个与TextArea控件有关的奇怪问题。在使用SceneBuilder之后,我已经使用了样式表:
.text-input {
-fx-font-style: italic;
-fx-font-weight: bold;
-fx-text-fill: blue;
-fx-background-color: black;
}
输入文本已隐藏:
更重要的是,我无法将输入文本的对齐格式设置为居中,如:
-fx-text-aligment:center;
或
-fx-font-alignment:center
我应该替换此控件的所有默认样式吗?怎么做?