【问题标题】:Flex 4.5 - s:Group default margins?Flex 4.5 - s:组默认边距?
【发布时间】: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


    【解决方案1】:

    你是说要去掉 VGroup 的子元素之间的空隙吗?

    可以在组中设置gap=0,如:

    希望对您有所帮助。

    【讨论】:

    • 我完全不喜欢那个。确定子元素是罪魁祸首。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-19
    • 2012-10-19
    • 2016-09-05
    • 2020-10-29
    相关资源
    最近更新 更多