JavaFX CSS:使用CSS绘制文本

时间:2018-08-07 18:54:06

标签: javafx-css

有没有办法像这样的图像在CSS中编码?透明填充,蓝色描边边框,中间的文本。对不起,我的英语。

Spanish drag and drop image with blue stroke

1 个答案:

答案 0 :(得分:0)

尝试使用fx-border-colorfx-stroke-dash-array创建虚线边框。

例如,

-fx-border-color: deepskyblue;
-fx-fill: transparent;
-fx-stroke-dash-array: 10 10;
-fx-text-alignment: center;