0
下面的代碼產生了兩組具有彩色背景和它們之間的餘量。我試過了顯而易見的CSS修正(margin-top/bottom等),但它似乎沒有任何好處。有誰知道我該怎麼做?Flex 4.5 - s:組默認邊距?
<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>
我完全不在那一個。確定孩子的元素是罪魁禍首。謝謝! – Shawn