0
我有一個Horizontal tile列表,我想定製這個tile列表的水平滾動條的樣式。我想減少滾動條的粗細,使它看起來像一條粗線或其他東西。即使我不想在滾動條兩側的箭頭。我怎樣才能做到這一點?如何在flex中減少tile列表的水平滾動條的粗細3
我有一個Horizontal tile列表,我想定製這個tile列表的水平滾動條的樣式。我想減少滾動條的粗細,使它看起來像一條粗線或其他東西。即使我不想在滾動條兩側的箭頭。我怎樣才能做到這一點?如何在flex中減少tile列表的水平滾動條的粗細3
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中,你會想要寫一個自定義皮膚。
謝謝Baris。但是如果我不想使用任何圖像進行蒙皮。我想使用它可能是CSS或任何內部厚度屬性 – 2012-07-25 14:39:08
您可能需要爲此創建一個皮膚。檢查:http://livedocs.adobe.com/flex/3/html/help.html?content=skinning_5.html – 2012-07-25 14:46:13