浏览 1180 次
锁定老帖子 主题:007 使用 绝对值 定位
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2009-06-17
最后修改:2009-06-17
Flex 默认 子类 位置是 (0,0)。 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="280" height="240"> <!-- 定义 画布 容器 --> <mx:Canvas borderStyle="solid" width="100%" height="100%" backgroundColor="white"> <!-- 定义 两个 按钮,按钮A 大小 大于 按钮B --> <mx:Button id="buttonA" label="按钮 A" width="150" height="50"/> <mx:Button id="buttonB" label="按钮 B"/> </mx:Canvas> </mx:Application> 未定义 绝对值 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="280" height="240"> <!-- 定义 画布 容器 --> <mx:Canvas borderStyle="solid" width="100%" height="100%" backgroundColor="white"> <!-- 定义 两个 按钮,按钮A 大小 大于 按钮B --> <mx:Button id="buttonA" label="按钮 A" width="150" height="50" x="5" y="5"/> <mx:Button id="buttonB" label="按钮 B" x="5" y="80"/> </mx:Canvas> </mx:Application> 使用 绝对值 定位 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |