扩大
缩小
  

FineUI第十三天---`列布局

这是经典的列布局:

 1  <x:PageManager runat="server"></x:PageManager>
 2         <x:Panel runat="server" Height="350px" Width="750px" Layout="Column" BodyPadding="5px">
 3             <Items>
 4                 <x:Panel runat="server" ColumnWidth="50%" CssClass="colum" ShowBorder="false" ShowHeader="false">
 5                     <Items> 
 6                      <x:Panel runat="server" Height="150px" CssClass="rowpanel"></x:Panel>
 7                 <x:Panel Height="100px" CssClass="rowpanel" runat="server"></x:Panel>
 8                     </Items>
 9                 </x:Panel>
10                 <x:Panel runat="server" ColumnWidth="50%" ShowBorder="false" ShowHeader="false">
11                     <Items>
12                      <x:Panel runat="server" Height="100px" CssClass="rowpanel"></x:Panel>
13                  <x:Panel Height="150px" runat="server" CssClass="rowpanel"></x:Panel></Items>
14                 </x:Panel>
15             </Items>
16         </x:Panel>

17     </form> 

注意: 

 1.父容器:Layout属性为Column;

 2.子容器:设置width或者ColumnWidth属性来设置宽度

 

 

每一列之间有间隙:

 

 

每列可能有多个容器:

 

posted @ 2015-01-07 16:27  风筝遇上风  阅读(401)  评论(0编辑  收藏  举报