如何在javafx中设计如上所述的表格。我使用tableview并做了一些CSS,但设计不是我想要的。
请谁能告诉我怎样才能实现上述设计
这里是我试过
.table-view{
-fx-background-color: transparent;
}
.table-view:focused{
-fx-background-color: transparent;
}
/* Spaltenköpfe
Struktur column-header-background -> column-header */
.table-view .column-header-background{
-fx-background-color: linear-gradient(#131313 0%, #424141 100%);
}
.table-view .column-header-background .label{
-fx-background-color: transparent;
-fx-text-fill: white;
}
.table-view .column-header {
-fx-background-color: transparent;
}
.table-view .table-cell{
-fx-text-fill: white;
}
.table-row-cell{
-fx-background-color: -fx-table-cell-border-color, #616161;
-fx-background-insets: 0, 0 0 1 0;
-fx-padding: 0.0em; /* 0 */
}
目前的设计表
您能否请您附上当前视图的图像以及您在复制时遇到的具体问题? – Itai
@sillyfly我添加了表 –