相关疑难解决方法(0)

Javafx 2.0:如何用CSS改变单选按钮圈的大小?

我尝试使用FXML和CSS更改app构建中的单选按钮大小.我使用的是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 : …
Run Code Online (Sandbox Code Playgroud)

javafx javafx-2 fxml scenebuilder

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

fxml ×1

javafx ×1

javafx-2 ×1

scenebuilder ×1