标签: javafx-css
有没有办法像这样的图像在CSS中编码?透明填充,蓝色描边边框,中间的文本。对不起,我的英语。
答案 0 :(得分:0)
尝试使用fx-border-color和fx-stroke-dash-array创建虚线边框。
fx-border-color
fx-stroke-dash-array
例如,
-fx-border-color: deepskyblue; -fx-fill: transparent; -fx-stroke-dash-array: 10 10; -fx-text-alignment: center;