我有一个水平磁贴列表,我想自定义这个磁贴列表的水平滚动条的样式。我想减少滚动条的厚度,使它看起来像一条粗线或其他东西。即使我不想要滚动条两侧的箭头。我怎样才能做到这一点?
问问题
399 次
1 回答
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 中,您需要编写自定义皮肤。
于 2012-07-25T14:35:37.883 回答