1
我無法在javafx文本框的邊框內放置背景圖像。圖像出現在右側邊框上。TextField背景圖像
這裏是所使用的CSS:
.text-field-calendar {
-fx-background-insets: 0, 1, 2;
-fx-background-radius: 3, 2, 2;
-fx-background-image: url("../../images/pick_calender.png");
-fx-background-repeat: no-repeat;
-fx-background-position: right center;
-fx-padding: 3 15 3 5;
}
謝謝,但它不工作。它不識別「正確的10中心」語法。 –