我想在左上角和右上角创建一个带有2个圆角的窗格,我怎样才能在javafx中执行此操作? 我知道你可以在普通的CSS中使用“border-top-left-radius”但是它不能在javafx下工作。 到现在为止我试过了:
.calendar {
-fx-border-top-left-radius: 10px;
-fx-border-top-right-radius: 10px;
}
提前致谢,
僵尸
答案 0 :(得分:34)
.calendar{
-fx-border-radius: 10 10 0 0;
-fx-background-radius: 10 10 0 0;
/* top-left, top-right, bottom-right, and bottom-left corners, in that order. */
}