【发布时间】:2011-07-09 00:53:34
【问题描述】:
下面的代码生成了两个带有彩色背景的组,它们之间有一个边距。我已经尝试了明显的 css 修复(margin-top/bottom 等),但它似乎没有任何好处。有谁知道我该怎么做?
<s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center">
<s:Group id="topBar" width="100%" height="10%" bottom="0">
<s:Rect width="100%" height="100%">
<s:fill><s:SolidColor color="black" /></s:fill>
</s:Rect>
</s:Group>
<s:Group id="contentBar" width="100%" height="90%" top="0">
<s:Rect width="100%" height="100%">
<s:fill><s:SolidColor color="red" /></s:fill>
</s:Rect>
</s:Group>
</s:VGroup>
【问题讨论】:
标签: apache-flex actionscript-3 adobe flash-builder flex4.5