javafx tableview 设置透明

如果想要表格完全透明,需要设置以下5个样式,缺一不可:

/* 设置表格透明,如果要完全透明,下面应该是缺一不可------------------------------------- */
.table-view {
	-fx-background-color: transparent;
}
.table-column {
	-fx-background-color: transparent;
}
.table-row-cell {
    -fx-background-color:transparent;
}
.table-view .column-header-background {
	-fx-background-color:transparent;
} 
.table-view .filler {
	-fx-background-color:transparent;
}

效果如下: 

猜你喜欢

转载自blog.csdn.net/meng03459/article/details/81239557