2011-12-21 16 views

回答

4
s|Scroller 
{ 
skinClass: com.x.y; 
} 
+0

谢谢你是这样的 – 2011-12-22 08:41:32

0

最佳答案是,您将该样式应用于父应用程序,这意味着您在第一页中给出了该样式,然后它将应用于所有子页面。像这样

<mx:Style source="Style/Style.css" /> 

给你的应用程序中的所有父页面。

祝您有愉快的一天。

的style.css

Application 
{ 
    backgroundColor: #FFFFFF; 
    themeColor: #6C76D3; 
    color: #333333; 
} 

.NumButton 
{ 
    color: #000000; 
    width: 35; 
    font-weight:bold; 
} 

Accordion 
{ 
    borderStyle: solid; 
    headerHeight: 32; 
    textIndent: 0; 
    openDuration: 219; 
    fillAlphas: 1, 1, 0.7, 0.7; 
    fillColors: #EBF0F3, #8E8FCC, #6273C9, #263692; 
    selectedFillColors: #D5DBE3, #8E8FCC; 
    headerStyleName: "myaccordionHeader"; 
} 

AccordionHeader 
{ 
    borderStyle: solid; 
    headerHeight: 36; 
    textIndent: 0; 
    openDuration: 219; 
    fillAlphas: 0.4, 0.5, 0.7, 0.7; 
    fillColors: #DEE1FF, #AEBEFF, #8C86FF, #5646D3; 
    selectedFillColors: #AEBEFF, #8C86FF; 
    headerStyleName: "myaccordionHeader"; 
} 
.myaccordionHeader 
{ 
    color: #1F213C; 
    fontFamily: Tahoma; 
    fontSize: 12; 
} 
+0

这是有益的,但只有答案的一部分。这种风格的代码是什么样子的(Style.css中有什么)? – 2011-12-21 20:27:35

+1

Style.css是StyleSheet的名称。你可以在你的所有父应用程序中提供。其冗长的代码,这就是为什么我不能给你..对不起,这... – 2011-12-22 04:21:08

+1

我看不出这是如何回答这个问题。不像user293531(难以书写的上帝)简洁和点的反应。 – 2011-12-22 10:29:07

1

谢谢你们我得到它的工作:)

我把在应用程序的风格标签代码(样式表将工作为好),

<fx:Style> 
    @namespace s "library://ns.adobe.com/flex/spark"; 
    @namespace mx "library://ns.adobe.com/flex/mx"; 
    @namespace skins "skins.*"; 

    s|HScrollBar 
    { 
     skinClass: ClassReference("skins.HScrollBarSkin"); 
    } 

    s|VScrollBar 
    { 
     skinClass: ClassReference("skins.VScrollBarSkin"); 
    } 
</fx:Style> 
+0

它是伟大的!谢谢 :) – 2012-02-08 09:19:59

相关问题