一、FineUI页面布局分为

1、Fit布局

   <f:Panel ID="Panel1" Title="布局Fit(Layout=Fit)" runat="server" Layout="Fit" Height="300px" EnableFrame="true" EnableCollapse="true"
BodyPadding="5px" Width="850px" ShowBorder="True"
ShowHeader="True">
<Items>
<f:Form ID="Form2" runat="server" ShowBorder="True" BodyPadding="5px" ShowHeader="false" Title="表单">
<Rows>
<f:FormRow>
<Items>
<f:Label ID="Label1" Label="文本" Text="文本内容" runat="server">
</f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="TextBox1" Label="输入框" runat="server">
</f:TextBox>
<f:Button ID="Button1" Text="按钮" runat="server">
</f:Button>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:Panel>

2、Anchor布局方式

 1 <f:Panel ID="Panel2" runat="server" Height="300px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
2 BodyPadding="5px" Layout="Anchor" ShowHeader="True" Title="布局Anchor(Height=300px Width=750px Layout=Anchor)">
3 <Items>
4 <f:Panel ID="Panel4" AnchorValue="60% 30%" runat="server"
5 BodyPadding="5px" ShowBorder="True" ShowHeader="false">
6 <Items>
7 <f:Label ID="Label3" ShowEmptyLabel="false" Text="AnchorValue=60% 30%" runat="server">
8 </f:Label>
9 </Items>
10 </f:Panel>
11 <f:Form ID="Form2" AnchorValue="100% 70%" runat="server"
12 BodyPadding="5px" ShowBorder="True" ShowHeader="false">
13 <Rows>
14 <f:FormRow>
15 <Items>
16 <f:Label ID="Label1" ShowEmptyLabel="false" Text="AnchorValue=100% 70%" runat="server">
17 </f:Label>
18 </Items>
19 </f:FormRow>
20 <f:FormRow>
21 <Items>
22 <f:TextBox ID="TextBox1" Label="输入框" runat="server">
23 </f:TextBox>
24 <f:Button ID="Button7" Text="按钮" runat="server">
25 </f:Button>
26 </Items>
27 </f:FormRow>
28 </Rows>
29 </f:Form>
30 </Items>
31 </f:Panel>

3、Column

 <f:Panel ID="Panel2" runat="server" Height="250px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
BodyPadding="5px" Layout="Column" ShowHeader="True" Title="布局Column(Height=250px Width=750px Layout=Column)">
<Items>
<f:Panel ID="Panel1" Width="200px" Height="150px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label runat="server" Text="Width=200px Height=150px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel4" ColumnWidth="60%" runat="server"
BodyPadding="5px" ShowBorder="true" ShowHeader="false" Layout="Fit">
<Items>
<f:Label ID="Label1" runat="server" Text="ColumnWidth=60%<br />长长的文本1<br />长长的文本2<br />长长的文本3<br />长长的文本4"
EncodeText="false">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel3" ColumnWidth="40%" runat="server"
BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label2" runat="server" Text="ColumnWidth=40%">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>

4、Absolute

<f:Panel ID="Panel2" runat="server" Height="450px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
Layout="Absolute" ShowHeader="True" Title="布局Absolute(Height=450px Width=750px Layout=Absolute)">
<Items>
<f:Panel ID="Panel1" Width="300px" Title="Panel1" Height="300px" AbsoluteX="100px"
BodyPadding="5px" AbsoluteY="50px" runat="server"
ShowBorder="True" ShowHeader="false">
<Items>
<f:Label ID="Label3" EncodeText="false" Text="Width=300px <br/>Height=300px <br/>AbsoluteX=100px <br/>AbsoluteY=50px"
runat="server">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel3" Title="Panel2" Width="150px" Height="150px" AbsoluteX="450px"
BodyPadding="5px" AbsoluteY="150px" runat="server"
ShowBorder="True" ShowHeader="false">
<Items>
<f:Label ID="Label1" EncodeText="false" Text="Width=150px <br/>Height=150px <br/>AbsoluteX=450px <br/>AbsoluteY=150px"
runat="server">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>

5、Table

<f:Panel ID="Panel2" runat="server" Height="450px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
Layout="Table" TableConfigColumns="3" ShowHeader="True" Title="布局Table(Height=450px Width=750px Layout=Table)">
<Items>
<f:Panel ID="Panel1" Title="Panel1" Width="300px" Height="210px"
TableRowspan="2" runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label1" runat="server" Text="Width=300px Height=210px TableRowspan=2">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel3" Title="Panel2" Width="430px" Height="100px"
TableColspan="2" runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label2" runat="server" Text="Width=430px Height=100px TableColspan=2">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel4" Title="Panel3" Width="200px" Height="100px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label3" runat="server" Text="Width=200px Height=100px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel5" Title="Panel4" Width="220px" Height="100px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label4" runat="server" Text="Width=220px Height=100px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel6" Title="Panel5" Width="300px" Height="100px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label5" runat="server" Text="Width=300px Height=100px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel7" Title="Panel6" Width="200px" Height="100px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label6" runat="server" Text="Width=200px Height=100px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel8" Title="Panel6" Width="220px" Height="100px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label7" runat="server" Text="Width=220px Height=100px">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>

6、HBox

<f:Panel ID="Panel2" runat="server" Height="250px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start" BoxConfigPadding="5"
BoxConfigChildMargin="0 5 0 0" ShowHeader="True"
Title="面板(Layout=HBox BoxConfigAlign=Stretch BoxConfigPosition=Start BoxConfigPadding=5 BoxConfigChildMargin=0 5 0 0)">
<Items>
<f:Panel ID="Panel1" Title="面板1" BoxFlex="1" runat="server"
BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label1" runat="server" Text="BoxFlex=1">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel3" Title="面板2" Width="150px"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label2" runat="server" Text="Width=150px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel4" Title="面板3" BoxFlex="2" runat="server"
BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label3" runat="server" Text="BoxFlex=2 BoxMargin=0">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>

7、VBox

 <f:Panel ID="Panel2" runat="server" Height="450px" Width="850px" ShowBorder="True" EnableFrame="true" EnableCollapse="true"
Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start" BoxConfigPadding="5"
BoxConfigChildMargin="0 0 5 0" ShowHeader="True" Title="面板(Layout=VBox BoxConfigAlign=Stretch BoxConfigPosition=Start BoxConfigPadding=5 BoxConfigChildMargin=0 0 5 0)">
<Items>
<f:Panel ID="Panel1" Title="面板1" BoxFlex="1" runat="server"
BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label1" runat="server" Text="BoxFlex=1">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel3" Title="面板2" Height="100px" runat="server"
BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label2" runat="server" Text="Height=100px">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel4" Title="面板3" BoxFlex="2" BoxMargin="0"
runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="false">
<Items>
<f:Label ID="Label3" runat="server" Text="BoxFlex=2 BoxMargin=0">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>

FineUI布局应用(二)的更多相关文章

  1. iOS开发~UI布局(二)storyboard中autolayout和size class的使用详解

    一.概要:前一篇初步的描述了size class的概念,那么实际中如何使用呢,下面两个问题是我们一定会遇到的: 1.Xcode6中增加了size class,在storyboard中如何使用? 2.a ...

  2. jQuery-瀑布流-绝对定位布局(二)(延迟AJAX加载图片)

    jQuery-瀑布流-绝对定位布局(二)(延迟AJAX加载图片)   瀑布流-绝对定位布局,与浮动布局的区别在于 1.布局不一样: 绝对定位:一个UL里面放置所有的绝对定位的LI: 浮动布局:多个(一 ...

  3. iOS8开发~UI布局(二)storyboard中autolayout和size class的使用具体解释

    一.概要:前一篇初步的描写叙述了size class的概念,那么实际中怎样使用呢,以下两个问题是我们一定会遇到的: 1.Xcode6中添加了size class,在storyboard中怎样使用? 2 ...

  4. WPF 之 布局(二)

    一.Canvas  Canvas是最基本的面板,只是一个存储控件的容器,它不会自动调整内部元素的排列及大小,它仅支持用显式坐标定位控件,它也允许指定相对任何角的坐标,而不仅仅是左上角.可以使用Left ...

  5. C++类继承内存布局(二)

    转自:http://blog.csdn.net/jiangyi711/article/details/4890889# (二 )成员变量 前面介绍完了类布局,接下来考虑不同的继承方式下,访问成员变量的 ...

  6. 微信小程序前置课程:flex布局(二)

    原文:http://www.ruanyifeng.com/blog/2015/07/flex-examples.html 上一篇文章介绍了Flex布局的语法,今天介绍常见布局的Flex写法. 你会看到 ...

  7. Html 经典布局(二)

    经典布局案例(二): <!DOCTYPE html> <html lang="en"> <head> <meta charset=&quo ...

  8. EXT.NET复杂布局(二)——报表

    前面提到过工作台(<EXT.NET复杂布局(一)--工作台>)了,不知道各位看过之后有什么感想.这次就介绍介绍使用EXT.NET画几个报表. 看图写作从小学就开始了,如图: 图一 图二 图 ...

  9. FineUI 布局宽度自适应,后台回调js方法

    FineUI页面布局,宽度自适应 @(F.Panel().CssClass().ShowBorder().BoxConfigChildMargin("0 5 0 0").ShowH ...

随机推荐

  1. NSUserDefaults的使用方法

    NSUserDefaults对象是用来保存,恢复应用程序相关的偏好设置,配置数据等等,用户再次打开程序或开机后这些数据仍然存在.默认系统允许应用程序自定义它的行为去迎合用户的喜好.你可以在程序运行的时 ...

  2. C#中的TCP通讯与UDP通讯

    最近做了一个项目,主要是给Unity3D和实时数据库做通讯接口.虽然方案一直在变:从开始的UDP通讯变为TCP通讯,然后再变化为UDP通讯;然后通讯的对象又发生改变,由与数据库的驱动进行通讯(主动推送 ...

  3. 类 this指针 const成员函数

    C++ Primer 第07章 类 7.1.2 ​Sales_data类的定义如下: #ifndef SALES_DATA_H #define SALES_DATA_H #include <st ...

  4. mysql定时执行及延时执行,实现类似sql server waitfor功能

    熟悉SQL Server的人都知道,它有一个很有用的功能,waitfor time和waitfor delay,前者表示在某个时间执行,后者表示等待多长时间执行.在我们测试功能和定时执行的时候特别有用 ...

  5. QQ在线客服

    css代码: .float0831 { POSITION: fixed; TOP: 180px; RIGHT: 1px; _position: absolute } .float0831 A { CO ...

  6. windows下安装phpcms html/ 文件夹不可写的一种错误以及解决方法

    朋友安装phpcms时遇到奇葩问题,环境搭建在windows7中,竟然出现 html/ 和 phpsso_server/caches/文件夹不可写问题(如图) 在windows下出现这种权限的问题真不 ...

  7. pyzmq简单的在线聊天室

    #encoding=utf-8#客户端 import zmq c = zmq.Context() s = c.socket(zmq.REQ) s.connect('tcp://127.0.0.1:10 ...

  8. coursera上的软件安全课程的课后阅读补充

    在coursera选修了一门软件安全的课程.下面是教授列出来的阅读: Week 1 Readings Required reading The only required reading this w ...

  9. java,C#接口与C++的虚基类

    看C#的接口感觉就像C++中继承并实现虚基类的函数方法一样,是OOP编程中表现多态的一种方式.可以参考下面的文章: http://blog.sina.com.cn/s/blog_60ff8f1b010 ...

  10. Git for windows GUI使用

    试用了下CSDN的Code 期间还遇到一个错误 http://blog.csdn.net/utstarm/article/details/8249853 这个新手教程写得不错 https://code ...