最佳答案
您可以尝试“list-cell:empty”中的某些内容。 更改“list-cell:empty”的背景颜色会将此白线的颜色更改为默认的“focus-color”
.list-cell:empty {
-fx-padding: 0 ;
-fx-background-color: -fx-focus-color ;
-fx-background-insets: 0 ;
}
关于JavaFX 8 : How to remove the last white pixel from the combobox list,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46338187/