2010-07-01 4 views
1

가능한 중복에서 지원되지 않습니다 어도비 플래시 빌더 4 : CSS 유형 선택기는 구성 요소 spark.components.Label


Warning: css type selectors are not supported in components ‘sparks.component.TextInput’

내가 어떤 레이블을 포함하는 새 MXML 구성 요소를 생성 다음 스타일 :

<fx:Style> 
    @namespace s "library://ns.adobe.com/flex/spark"; 
    @namespace mx "library://ns.adobe.com/flex/mx"; 
    @namespace local "*"; 
    s|Label { 
     font-size:12; 
     font-weight:bold; 
     color:white; 
    } 
    #timeLeftHGroup { 
     left:30; 
     top:12; 
    } 

s|Label 줄 :

CSS type selectors are not supported in components: 'spark.components.Label'  

글쎄 .. CSS 코드가 작동합니다! 그것은 색상을 변경하고, 텍스트를 굵게 만들고, 글꼴 크기를 12로 변경했습니다. 왜이 경고 메시지가 나옵니까?

답변

1

s | 구성 요소 내부에서 사용될 때 지원되지 않으므로 무시됩니다. 전체 응용 프로그램에 적용되는 루트 수준 스타일 시트에 넣으십시오.