KunLun :
How I can create this type of background(white, black, white) in javafx?
I tried -fx-background-color: white, black, white;
but is not what I want.
PhilKey :
I managed to come up with a CSS styling resulting in this: Inner Circles example
.circle-background{
-fx-background-color: black, white; /* 2nd inner color, 3rd inner color*/
-fx-background-insets: 10,60; /*2nd inner ring, 3rd inner ring */
-fx-background-radius: 50%;
-fx-border-width: 10; /* outer ring width */
-fx-border-color: white;/* outer ring color */
-fx-border-radius: 50%;
}
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325643&siteId=1