赞
踩
horizontalCenter和verticalCenter:
<mx:Canvas left="10" right="10" top="104" bottom="10" backgroundColor="#000000" backgroundAlpha="0.1"
borderStyle="solid" borderColor="#000000" alpha="0.2" width="100%" height="200">
<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"/>
</mx:Canvas>
verticalCenter=“0” 表示垂直居中,horizontalCenter=0表示水平居中
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。