我尝试在 JavaFx 中设计 TextArea 样式,但无法摆脱这些白角。
#txa_movieEditComment .content{
-fx-background-color: #949494;
-fx-background-radius: 12;
}
#txa_movieEditComment {
-fx-font-size: 17;
-fx-focus-color: transparent;
-fx-text-box-border: transparent;
}
#txa_movieEditComment .scroll-bar:vertical,
#txa_movieEditComment .scroll-bar:vertical .track,
#txa_movieEditComment .scroll-bar:vertical .track-background {
-fx-background-color: #191919;
}
#txa_movieEditComment .scroll-bar:vertical .thumb {
-fx-background-color: #949494;
-fx-background-radius: 12;
}
这是我的 CSS 样式。也许有人可以帮助我。