<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<!-- 定义面板容器 宽度为 200 像素,高度为 200 像素 -->
<mx:Panel title="绝对值 设置 控件大小 示例" width="200" height="200">
<!-- 定义 按钮 宽度为 160 像素,高度为 25 像素 -->
<mx:Button id="button1" label="按钮" width="160" height="25">
</mx:Button>
</mx:Panel>
</mx:Application>[img]/upload/attachment/115798/94b3c998-ab0c-31cd-86e8-a965a72124c6.png[/img]
组件 绝对值 示例
本文展示了一个使用Flex布局设置按钮尺寸的示例。通过绝对值定义了面板和按钮的具体尺寸,面板宽高均为200像素,按钮宽160像素、高25像素。
6477

被折叠的 条评论
为什么被折叠?



