一张图片胜过千言万语:
.
正如你所看到我在这张桌子上使用自定义CSS,但我不能填充右上角.我尝试更改滚动窗格的背景而没有结果.
这是实际的CSS:
.table-row-cell {
-fx-background-color: rgba(71, 81, 80,0.5);
}
.table-row-cell:hover {
-fx-background-color: rgba(40, 96, 93, 0.50);
}
.table-row-cell:hover:empty {
-fx-background-color: rgba(71, 81, 80,0.5);
}
.table-row-cell .table-cell {
-fx-border-width: 0px;
}
.table-view {
-fx-border-color: rgba(1, 11, 12, 1);
-fx-background-radius: 2;
-fx-border-width: 1px;
-fx-border-radius: 2;
-fx-background-color: rgba(71, 81, 80,0.2);
-fx-background-insets: 0;
}
.table-view .column-header {
-fx-background-color: rgba(1, 11, 12, 1);
}
.scroll-bar {
-fx-background-color: rgba(1, 11, 12, 1);
}
.scroll-bar .increment-button:hover {
-fx-background-color: rgba(1, 11, 12, 1);
}
.scroll-bar .decrement-button:hover …Run Code Online (Sandbox Code Playgroud)