首页 > 解决方案 > 造型 JFoenix Tabpane

问题描述

我正在使用 JFoneix 库在 javafx 中创建 tabpane。一切正常,但是我无法删除连接选项卡的延长线。我怎样才能做到这一点?

下面的Css已经用来设计tabpane

#testDatesTab .tab-selected-line {
    -fx-background-color: #0059A9;
}
#testDatesTab .headers-region {
    -fx-background-color: #F5F6F8;
}
#testDatesTab .tab-header-background {
    -fx-background-color: white;
}
#testDatesTab .control-buttons-tab{
    -fx-background-color:white;
}
#testDatesTab .control-buttons-tab .tab-down-button{
    -fx-background-color: #0059A9 ;
}
#testDatesTab *.tab-header-area {
    
    -fx-padding: 0 0 0 0;
}

标签: javafxjfoenixjavafx-css

解决方案


使用这些样式线你应该没有问题,也许如果你的 css 中有其他东西是导致这个问题的原因,看我刚刚做了一个例子。添加完整的 CSS。

在此处输入图像描述


推荐阅读