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