在网上找了一下,可是没有实用的例子,有那个哥哥有的话能够给一份DEMO不,完整的最好,谢谢了

解决方案 »

  1.   


    <mx:Style>    Grid{        horizontalGap:0;        verticalGap:0;        borderThickness:1;        borderSides:bottom,right;        borderStyle:solide;        borderColor:#000000;    }    GridItem{        borderSides:left,top;        borderThickness:1;        borderStyle:solid;         borderColor:#000000;    }</mx:Style> 可以用<mx:Grid width="100%" height="100%" horizontalGap="0" verticalGap="0">         <mx:GridRow width="100%" height="20" >            <mx:GridItem width="15%" borderStyle="solid" borderThickness="1" verticalAlign="middle" horizontalAlign="center">                <mx:label text="销售单位"/>            </mx:GridItem>            <mx:GridItem colSpan="3" width="85%" borderStyle="solid" borderThickness="1">                <mx:TextInput borderStyle="none" width="100%"/>            </mx:GridItem>         </mx:GridRow>     </mx:Grid>就像HTML里的table一样,GridRow 相当于行GridItem相当于列,再用colspan或者rowspan进行合并,达到你想要的效果