의 규칙에서 '-fx-background-color'에 대한 조회를 해결하는 동안 '-fx-tab-border-color'를 해결할 수 없습니다. 내 규칙이 이미 적용되었으므로 이러한 오류가 유동적으로 발생합니다. 웹에서 사용할 수있는 솔루션을 이해하려고했지만 그 중 아무 것도 나를 위해 일하지 않았습니다.스타일 시트
Jul 18, 2016 1:39:17 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-tab-border-color' while resolving lookups for '-fx-background-color' from rule '*.tab-pane>*.tab-header-area>*.control-buttons-tab' in stylesheet file ***style.css***
는 위에서 언급과 일부 구성 요소가 제대로로드 할 수 없습니다 때문에되는 이와 유사한 경고를 많이하기. Java1.8.0_66 사용.
.tab-pane > .tab-header-area > .control-buttons-tab {
-fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0, 1, 2;
-fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
-fx-padding: 0.083333em 0.25em 0.083333em 0.25em; /* 1 3 1 3 */
}
이 같은 CSS 파일입니다
.root {
-fx-base: #d0d0d0;
-fx-background: #f4f4f4;
-fx-control-inner-background: white;
-fx-font-family:"Courier";
-fx-font-size: 12;
-fx-dark-text-color: black;
-fx-mid-text-color: #292929;
-fx-light-text-color: white;
-fx-accent: #0093ff;
-fx-focus-color: #0093ff;
-fx-color: -fx-base;
-fx-disabled-opacity: 0.9;
-fx-hover-base: ladder(
-fx-base,
derive(-fx-base,20%) 20%,
derive(-fx-base,30%) 35%,
derive(-fx-base,40%) 50%
);
-fx-pressed-base: derive(-fx-base,-20%);
-fx-focused-base: -fx-base;
-fx-tab-border-color: -fx-box-border;
-fx-background-color: inherit;
-fx-background-radius: inherit;
-fx-background-insets: inherit;
-fx-padding: inherit;
-fx-cell-hover-color: #cce3f4;
-fx-cell-focus-inner-border: #85b9de;
-fx-page-bullet-border: #acacac;
-fx-page-indicator-hover-border: #accee5;
}
그것은에서 사용된다 :처럼 내 CSS 파일에서
루트입니다.
미리 감사드립니다.
재생할 수 없습니다. '-fx-tab-border-color'를 다음과 같이 수정하십시오. 'TAB_BORDER_COLOR'. – DVarga
나를 위해 잘 작동합니다. 당신은 아마도'-fx' 접두사를 자신의 룩업 컬러 정의에 사용해서는 안되지만 잘 작동합니다. –
@James_D 나는 ** css ** .root 내용과 css의 내용에 대해 언급했다. 여기서 문제 설명에 사용된다. 그리고 나는'-fx'에 문제가 없다는 것을 알 수 있습니다. 같은 문제는'-fx-disabled-opacity'에 직면하고 있습니다. –