top,bottom,left,right,horizontalCenter和verticalCenter样式
2013-01-19 17:06
495 查看
verticalCenter=“0” 表示垂直居中,horizontalCenter=0表示水平居中
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<s:BorderContainer horizontalCenter="0" verticalCenter="0" backgroundColor="#000000" backgroundAlpha="0.3" borderStyle="solid" borderColor="#000000" alpha="0.5" width="500" height="300">
<mx:Text text="Top Left" left="10" top="10" />
<mx:Text text="Bottom Left" left="10" bottom="10" />
<mx:Text text="Bottom Center" bottom="10" horizontalCenter="0" />
<mx:Text text="Center" horizontalCenter="0" verticalCenter="0" />
<mx:Text text="Bottom Right" right="10" bottom="10" />
<mx:Text text="Center Right" verticalCenter="0" right="10" />
<mx:Text text="Center Left " left="10" verticalCenter="0" />
<mx:Text text="Top Center" horizontalCenter="0" top="10" />
<mx:Text text="Top Right" right="10" top="10" />
</s:BorderContainer>
</s:Application>
来源:http://zw7534313.iteye.com/blog/848901
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<s:BorderContainer horizontalCenter="0" verticalCenter="0" backgroundColor="#000000" backgroundAlpha="0.3" borderStyle="solid" borderColor="#000000" alpha="0.5" width="500" height="300">
<mx:Text text="Top Left" left="10" top="10" />
<mx:Text text="Bottom Left" left="10" bottom="10" />
<mx:Text text="Bottom Center" bottom="10" horizontalCenter="0" />
<mx:Text text="Center" horizontalCenter="0" verticalCenter="0" />
<mx:Text text="Bottom Right" right="10" bottom="10" />
<mx:Text text="Center Right" verticalCenter="0" right="10" />
<mx:Text text="Center Left " left="10" verticalCenter="0" />
<mx:Text text="Top Center" horizontalCenter="0" top="10" />
<mx:Text text="Top Right" right="10" top="10" />
</s:BorderContainer>
</s:Application>
来源:http://zw7534313.iteye.com/blog/848901
相关文章推荐
- position:fixed; top: 0; right: 0; bottom: 0; left: 0;的意思
- Android在代码中设置控件的drawableLeft,drawableRight,drawableTop,drawableBottom。
- left top right bottom问题
- div+css - CSS标准 - 8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin' - 8.3边距属性
- 动态设置android:drawableLeft|Right|Top|Bottom
- position:fixed; top: 0; right: 0; bottom: 0; left: 0;的意思
- css中absolute定位的top bottom left right
- Andriod中绘(画)图----Canvas的使用详解 (附canvas.drawRect(left, top, right, bottom, paint)参数理解)
- java jxl excel导出报错 Warning: Cannot merge cells - top left and bottom right incorrectly specified
- 安卓在代码中设置TextView的drawableLeft、drawableRight、drawableTop、drawableBottom
- 绝对能用-动态设置textview的drawableleft、drawableright、drawabletop、drawablebottom
- (四)学习CSS之position、bottom、left、right和top属性
- Android在代码中设置控件的drawableLeft/Right/Top/Bottom
- position:fixed; top: 0; right: 0; bottom: 0; left: 0;的意思
- css left right top bottom定位
- Android-区分 View 的 translationX、Y , X、Y 和 Left、Top,Right、Bottom
- 设置position:absolute 后 top right bottom left 如何偏移
- 动态设置android:drawableLeft|Right|Top|Bottom
- 设置drawableTop、drawableLeft、drawableRight、drawableBottom图片大小
- 动态设置android:drawableLeft|Right|Top|Bottom