ITeye博客

horizontalCenter和verticalCenter

zw7534313 · 2010-12-22 09:32 · flex · Web前端 · Markdown

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表示水平居中

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。