【发布时间】:2012-08-15 19:32:01
【问题描述】:
我尝试使用 FXML 和 CSS 在我的应用构建中更改单选按钮的大小。 我用的是sceneBuilder。
感谢您的帮助!
这是我的单选按钮的实际 CSS 代码:
.radio-button .radio{
-fx-border-width : 1px ;
-fx-border-color : #000 ;
-fx-background-color : white ;
-fx-background-image : null ;
-fx-border-radius : 15px ;
-fx-height : 15px ; /* Not working */
height : 5px ; /* Not working */
}
.radio-button .radio:selected{
-fx-background-color : white ;
-fx-background-image : null ;
}
.radio-button -radio:armed{
-fx-background-color : white ;
-fx-background-image : null ;
}
.radio-button -radio:determinate{
-fx-background-color : white ;
-fx-background-image : null ;
}
.radio-button -radio:indeterminate{
-fx-background-color : white ;
-fx-background-image : null ;
}
【问题讨论】:
标签: javafx javafx-2 fxml scenebuilder