小编Ist*_*tch的帖子

使用自定义CSS时,JavaFX表上的滚动条会留下空白区域

一张图片胜过千言万语:

使用自定义css在表的角落的白色空间 .

正如你所看到我在这张桌子上使用自定义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)

css javafx javafx-8

5
推荐指数
1
解决办法
1322
查看次数

标签 统计

css ×1

javafx ×1

javafx-8 ×1