[Flex] ButtonBar系列——flex3 ButtonBar样式之颜色的填充
2015-10-15 11:18
555 查看
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"> <mx:Style> .allButtons2 { /* Creates a gradient from red/orange when button is in the "out" state. */ fillColors: red, haloOrange; } .allButtons4 { /* Creates a gradient from red/orange when button is in the "out" state. Creates a gradient from green/blue when button is in the "over" state. */ fillColors: red, haloOrange, haloGreen, haloBlue; } .allButtonsSolid { fillColors: red, red; } .allButtonsSolidOpaque { fillAlphas: 1.0, 1.0; fillColors: red, red; } </mx:Style> <mx:ViewStack id="viewStack" visible="false" includeInLayout="false"> <mx:VBox label="One"> <mx:Label text="One" /> </mx:VBox> <mx:VBox label="Two"> <mx:Label text="Two" /> </mx:VBox> <mx:VBox label="Three"> <mx:Label text="Three" /> </mx:VBox> </mx:ViewStack> <mx:Form> <mx:FormItem label="2 fill colors defined:"> <mx:ButtonBar id="buttonBar2" buttonStyleName="allButtons2" dataProvider="{viewStack}" /> </mx:FormItem> <mx:FormItem label="4 fill colors defined:"> <mx:ButtonBar id="buttonBar4" buttonStyleName="allButtons4" dataProvider="{viewStack}" /> </mx:FormItem> <mx:FormItem label="solid fill:"> <mx:ButtonBar id="buttonBarSolid" buttonStyleName="allButtonsSolid" dataProvider="{viewStack}" /> </mx:FormItem> <mx:FormItem label="solid opaque fill:"> <mx:ButtonBar id="buttonBarSolidOpaque" buttonStyleName="allButtonsSolidOpaque" dataProvider="{viewStack}" /> </mx:FormItem> </mx:Form> </mx:Application>
相关文章推荐
- CSS3中的transform变形
- CSS实现垂直居中的几种方法
- CSS中id与class的区别
- CSS3三角形
- CSS3属性之Multiple backgrounds
- CSS3属性之text-shadow和box-shadow(立体效果的实现)
- HTML+CSS编码的一些经验
- CSS3属性之border-radius
- 推荐大家使用的CSS书写规范、顺序
- CSS3属性之box-shadow
- 探究CSS display:inline|block|inline-block差异
- JS+CSS实现另类带提示效果的竖向导航菜单
- webstorm前端开发分享 js,css工具篇s
- css让背景图片拉伸填充的属性
- 用css控制cellspacing、cellpadding
- 将鼠标移到文本弹出一些字幕CSS达到,不及格JS达到
- 用css样式,为表格加入边框
- 使用<span>标签为文字设置单独样式
- JS+CSS实现另类带提示效果的竖向导航菜单
- getStyle 获取元素所绑定的css属性