2012-07-25 47 views

回答

0

Flex 3中,可以對皮膚的滾動條在CSS:

mx|ScrollBar 
{ 
    up-arrow-skin: ClassReference(null); //removes up arrow 
    down-arrow-skin: ClassReference(null); // removes down arrow 
    trackSkin: Embed(source="assets/ScrollBarTrack.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16"); 
    thumbUpSkin: Embed(source="assets/ScrollBarThumb_up.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16"); 
    thumbOverSkin: Embed(source="assets/ScrollBarThumb_over.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16"); 
    thumbDownSkin: Embed(source="assets/ScrollBarThumb_down.png", scaleGridLeft="1", scaleGridTop="4", scaleGridRight="5", scaleGridBottom="16"); 
} 

Flex 4中,你會想要寫一個自定義皮膚。

+0

謝謝Baris。但是如果我不想使用任何圖像進行蒙皮。我想使用它可能是CSS或任何內部厚度屬性 – 2012-07-25 14:39:08

+0

您可能需要爲此創建一個皮膚。檢查:http://livedocs.adobe.com/flex/3/html/help.html?content=skinning_5.html – 2012-07-25 14:46:13