我有一个带有多个 JFXButton 的工具栏 (VBox)。所有按钮的标题和字形都是白色的。当鼠标指针悬停在按钮上时,我只想更改字形颜色。
CSS 文件:
.button {
-fx-text-fill: white;
-fx-fill: white;
}
.button .glyph-icon:hover {
-fx-background-color: derive(black, 15%);
-fx-fill: #cc8f1e;
}
最佳答案
更改字形的“颜色”属性
关于css - 如何通过 CSS 中的悬停选择器更改 JFXButton 中的 Font Awesome 字形颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56409428/