2017-06-15 112 views

回答

3

看来你的问题是由背景插图引起的。

添加到您的样式表:

.jfx-progress-bar > .track, .jfx-progress-bar > .bar { 
    -fx-background-radius: 0; 
    -fx-background-insets: 0; 
} 

现在的造型作品:

.jfx-progress-bar > .bar { 
    -fx-background-color: red; 
} 

的背景颜色可以这样做后搞砸了,你可以解决它此:

.jfx-progress-bar > .track { 
    -fx-background-color: #E0E0E0; 
}