flex中使用css样式修改TextArea滚动条的皮肤代码
时间:2021-07-12 13:29:23|栏目:|点击: 次
复制代码 代码如下:
<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>
上一篇:autoit自定义函数
栏 目:
下一篇:docker 容器上编译 go 程序提示找不到文件问题
本文标题:flex中使用css样式修改TextArea滚动条的皮肤代码
本文地址:http://www.codeinn.net/misctech/156176.html






