0
以下のコードは、色付きの背景とそれらの間にマージンを持つ2つのグループを生成します。 Iveは明らかなCSS修正(マージントップ/ボトムなど)を試みましたが、それはうまくいきません。誰も私はこれを行う方法を知っていますか?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