首页 > 编程 > Flex > 正文

flex中使用css样式修改TextArea滚动条的皮肤代码

2020-02-16 10:26:50
字体:
来源:转载
供稿:网友
复制代码 代码如下:

<mx:script>
<![CDATA[
........
var contentTextArea = new TextArea();
contentTextArea.setStyle("verticalScrollBarStyleName","mytextAreaStyle");
........
]]>
</mx:Script>
<mx:Style>
.mytextAreaStyle{
/* 滑块 */
thumbSkin: ClassReference(null);
/* 滑道 */
trackSkin:Embed(source="pe/trackSkin.jpg");
/* 向上箭头 */
upArrowUpSkin:Embed(source="pe/upArrowSkin.png");
upArrowOverSkin:Embed(source="pe/upArrowSkin.png");
upArrowDownSkin:Embed(source="pe/upArrowSkin.png");
/* 向下箭头 */
downArrowUpSkin:Embed(source="pe/downArrowSkin.png");
downArrowOverSkin:Embed(source="pe/downArrowSkin.png");
downArrowDownSkin:Embed(source="pe/downArrowSkin.png");
}
</mx:Style>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选