我用css创建了一个tableview,但是当我选择它时,它会移动到左侧。我错过了什么?附:对不起我的英文。
我的css for tableview:
.table-view {
-fx-base: rgb(250, 95, 9);
-fx-control-inner-background: transparent;
-fx-background-color: transparent;
-fx-border-color: rgba(250,95,9,0.88);
-fx-border-radius: 10px;
-fx-table-cell-border-color: transparent;
-fx-table-header-border-color: rgba(250, 95, 9, 0.88);
-fx-padding: 5;
-fx-text-background-color: rgba(0, 0, 0, 1);
}
.table-view .column-header-background {
-fx-background-color: transparent;
-fx-text-background-color: rgba(0, 0, 0, 1);
}
.table-view .column-header, .table-view .filler {
-fx-border-width: 0 0 1 0;
-fx-background-color: transparent;
-fx-border-color:
transparent
transparent
derive(-fx-base, 80%)
transparent;
-fx-border-insets: 0 10 1 0;
-fx-text-background-color: rgba(0, 0, 0, 1);
}
.table-view .column-header .label {
-fx-font-size: 9pt;
-fx-font-family: "Segoe UI Light";
-fx-text-background-color: rgba(0, 0, 0, 1);
-fx-alignment: center;
-fx-opacity: 1;
}
.table-view:focused .table-row-cell:filled:focused:selected {
-fx-border-color: rgba(250, 95, 9, 0.8);
-fx-border-radius: 5px;
-fx-background-color: transparent;
-fx-text-background-color: rgba(0, 0, 0, 1);
}