【发布时间】:2019-03-04 22:18:00
【问题描述】:
我正在尝试找出用于突出显示 TableRow 顶部的 CSS。我正在使用它来重新排序行,以便任何重新排序它们的人都可以知道它将被插入到哪里。目前我只能在行周围画一个矩形,但我只想要那个矩形的顶线。
.table-row-cell.drag {
-fx-focus-color: #00a9d3;
-fx-faint-focus-color: #00a9d322;
-fx-highlight-fill: -fx-accent;
-fx-background-color:
-fx-focus-color,
-fx-control-inner-background,
-fx-faint-focus-color,
linear-gradient(from 0px 0px to 0px 5px, derive(-fx-control-inner-background, -9%), -fx-control-inner-background);
-fx-background-insets: -0.2, 1, -1.4, 3;
-fx-background-radius: 3, 2, 4, 0;
}
【问题讨论】: