我正在使用StyleClassedTextArea,就像我的应用中带有样式的文本框一样
然而,StyleClassedTextArea中的文字似乎没有像在文本框中那样在所有方面正确填充
文本框:
我试过这个:
.styled-text-area .paragraph-box:first-paragraph .paragraph-text {
-fx-padding: 10 10 10 10;
}
似乎没有效果。
请建议解决方案
答案 0 :(得分:0)
请试试这个;
.styled-text-area .content {
-fx-padding: 10.0 10.0 10.0 10.0;
}
答案 1 :(得分:0)
使用此代码
.styled-text-area .paragraph-box:first-paragraph:last-paragraph .paragraph-text {
-fx-padding: 5 8;
}
为StyleClassedTextArea提供更多高度,并尝试使用不同的填充值。