css - Javafx/CSS 中的左上角和右上角圆 Angular

标签 css javafx rounded-corners

我想创建一个左上角和右上角有 2 个圆 Angular 的 Pane ,我如何在 javafx 中执行此操作? 我知道您可以在普通 css 中使用“border-top-left-radius”,但它不会在 javafx 下工作。 到目前为止,我尝试过:

.calendar {
    -fx-border-top-left-radius: 10px; 
    -fx-border-top-right-radius: 10px; 
}

提前致谢

僵尸

最佳答案

.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. */
}

关于css - Javafx/CSS 中的左上角和右上角圆 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16564818/

相关文章:

html - Safari 渲染圆 Angular 不正确

CSS 圆 Angular 快速完成 : is this an awful technique?

javascript - 突出显示跨度的换行问题

html - 如何阻止溢出干扰 z-index?

Java FX从不同场景更改标签的值

Java - 对字符串列表进行排序,根据字符串的包含确定顺序

html - 如何更改 HTML 框角的颜色?

jquery - css 不适用于 jquery mobile 中动态加载的头文件

html - 如何在我的面板标题的左侧和右侧添加文本?

JavaFX - TableCell 中带有添加数据按钮的单选按钮