在哪里可以找到 combo-box-table-cell css 样式的规则?
Where can I find the rules for the combo-box-table-cell css style?
在JavaFX class ComboBoxTableCell
中,有一行代码说
this.getStyleClass().add("combo-box-table-cell");
我想看看如何为组合框表格单元格定义选择器和规则 CSS class,但我似乎无法在任何地方找到它。有谁知道我在哪里可以找到这个?
您不会在 caspian.css
和 modena.css
中找到那种风格 class。
实际上,具有 ComboBoxTableCell
作为细胞工厂的细胞可能具有其他样式 class,例如 cell
、indexed-cell
、table-cell
或 table-column
,并且只有 table-cell
在 modena.css
.
上定义了一些规则
添加它是为了让您可以在需要时轻松连接您的样式,仅在此类单元格中覆盖 table-cell
的默认规则,例如:
.combo-box-table-cell {
-fx-background-color: lightgrey;
-fx-text-fill: red;
}
在JavaFX class ComboBoxTableCell
中,有一行代码说
this.getStyleClass().add("combo-box-table-cell");
我想看看如何为组合框表格单元格定义选择器和规则 CSS class,但我似乎无法在任何地方找到它。有谁知道我在哪里可以找到这个?
您不会在 caspian.css
和 modena.css
中找到那种风格 class。
实际上,具有 ComboBoxTableCell
作为细胞工厂的细胞可能具有其他样式 class,例如 cell
、indexed-cell
、table-cell
或 table-column
,并且只有 table-cell
在 modena.css
.
添加它是为了让您可以在需要时轻松连接您的样式,仅在此类单元格中覆盖 table-cell
的默认规则,例如:
.combo-box-table-cell {
-fx-background-color: lightgrey;
-fx-text-fill: red;
}