【发布时间】:2017-02-26 07:24:39
【问题描述】:
我正在使用 JavaFX,我想自定义一个按钮。我看到了几个可以设置样式的特征。其中我发现了两个我不知道的。
.button {
-fx-padding: 5 22 5 22;
-fx-border-color: #121212;
-fx-border-width: 2;
-fx-border-radius: 5;
-fx-background-radius: 0;
-fx-background-color: #555555;
-fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif;
-fx-font-size: 11pt;
-fx-text-fill: #d8d8d8;
-fx-background-insets: 0 0 0 0, 0, 1, 2;
}
这两个属性是什么:
-fx-background-insets: 0 0 0 0, 0, 1, 2;
和
-fx-background-radius: 0;
我看到this,但对我来说很模糊。
【问题讨论】: