如何在javafx中使用边框间距属性?
就像在CSS的html中一样
table.ex1 {
border-collapse: separate;
border-spacing: 10px 50px;
}
如何在javafx中使用边框间距?
在TabPane里面,我想在每个标签下放置一个底部边框,而我的CSS是
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-border-width: 4px;
-fx-border-color: transparent transparent white transparent;
}
它的工作,我有很好的底部边框,但我需要更多的边框间距,所以有人请告诉我该怎么做?
提前致谢。
.tab:top{
-fx-background-color: transparent;
-fx-border-insets: 0 0 0 0;
-fx-border-color: white white white white ;
-fx-padding: 15px;
}
我认为javafx css中没有border-spacing type属性,但是无论如何,您可以通过Tab的-fx-padding属性在TabPane中进行设置。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句