Y&歪

朝梦想前进!
Coolite 学习之二:三列布局演示

效果:

 

   

 

 <div>
        <ext:ScriptManager ID="ScriptManager1" runat="server">
        </ext:ScriptManager>
        <ext:FormPanel ID="FormPanel1" runat="server" BodyStyle="padding:5px;" ButtonAlign="Center"
            Frame="true" AutoHeight="true" Title="三列布局演示" Width="590" LabelAlign="Left">
            <Body>
                <ext:Panel ID="Panel1" runat="server" Frame="false" Border="false" BodyBorder="false">
                    <Body>
                        <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                            <ext:LayoutColumn ColumnWidth="0.33">
                                <ext:Panel ID="Panel2" runat="server">
                                    <Body>
                                        <ext:FormLayout ID="FormLayout5" runat="server" LabelWidth="50">
                                            <Anchors>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField1" runat="server" FieldLabel="字段1">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField4" runat="server" FieldLabel="字段1">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                            </Anchors>
                                        </ext:FormLayout>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                            <ext:LayoutColumn ColumnWidth="0.33">
                                <ext:Panel ID="Panel3" runat="server">
                                    <Body>
                                        <ext:FormLayout ID="FormLayout2" runat="server" LabelWidth="50">
                                            <Anchors>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField2" runat="server" FieldLabel="字段2">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField5" runat="server" FieldLabel="字段2">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField6" runat="server" FieldLabel="字段2">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                            </Anchors>
                                        </ext:FormLayout>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                            <ext:LayoutColumn ColumnWidth="0.33">
                                <ext:Panel ID="Panel4" runat="server">
                                    <Body>
                                        <ext:FormLayout ID="FormLayout3" runat="server" LabelWidth="50">
                                            <Anchors>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField3" runat="server" FieldLabel="字段3">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField7" runat="server" FieldLabel="字段3">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField8" runat="server" FieldLabel="字段3">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor>
                                                    <ext:TextField ID="TextField9" runat="server" FieldLabel="字段3">
                                                    </ext:TextField>
                                                </ext:Anchor>
                                            </Anchors>
                                        </ext:FormLayout>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                        </ext:ColumnLayout>
                    </Body>
                </ext:Panel>
                <ext:Panel ID="Panel5" runat="server" Frame="false" Border="false" BodyBorder="false">
                    <Body>
                        <ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="50">
                            <Anchors>
                                <ext:Anchor>
                                    <ext:TextArea ID="TextArea1" runat="server" Height="100" FieldLabel="文本" Width="500">
                                    </ext:TextArea>
                                </ext:Anchor>
                            </Anchors>
                        </ext:FormLayout>
                    </Body>
                </ext:Panel>
            </Body>
            <Buttons>
                <ext:Button ID="Button1" runat="server" Icon="Disk" Text="Submit">
                </ext:Button>
            </Buttons>
        </ext:FormPanel>
    </div>

posted on 2010-06-09 11:31  xinyu1020  阅读(273)  评论(0编辑  收藏  举报