【发布时间】:2020-05-22 21:31:33
【问题描述】:
是否可以将列表视图的角设置为特定颜色或隐藏/使其透明,如果可以,我将如何做?
以下是我目前使用 css 设置列表视图样式的尝试。
.list-view .scroll-bar:vertical {
-fx-background-color:#2c365d;
}
.list-view .increment-button ,.list-view .decrement-button {
-fx-background-color:transparent;
-fx-border-color:transparent;
}
.list-view .scroll-bar:vertical .thumb {
-fx-background-color:#455491;
-fx-background-insets: 5, 5, 5;
-fx-background-radius: 5;
}
.list-view .scroll-bar:horizontal {
-fx-scale-x: 0;
}
【问题讨论】: