EasyUI 學習隨筆(layout)

1、可以在一個Div內建立一個layout
  1. <div id="cc" class="easyui-layout" style="width:600px;height:400px;">  
  2.     <div region="north" title="North Title" split="true" style="height:100px;"></div>  
  3.     <div region="south" title="South Title" split="true" style="height:100px;"></div>  
  4.     <div region="east" iconCls="icon-reload" title="East" split="true" style="width:100px;"></div>  
  5.     <div region="west" split="true" title="West" style="width:100px;"></div>  
  6.     <div region="center" title="center title" style="padding:5px;background:#eee;"></div>  
  7. </div>  
    (注:如果在一個Div內建立一個layout,在style內指定Size是必須的,否則無沒顯示)
2、可以在整個頁面建立一個layout
  1. <body class="easyui-layout">  
  2.     <div region="north" title="North Title" split="true" style="height:100px;"></div>  
  3.     <div region="south" title="South Title" split="true" style="height:100px;"></div>  
  4.     <div region="east" iconCls="icon-reload" title="East" split="true" style="width:100px;"></div>  
  5.     <div region="west" split="true" title="West" style="width:100px;"></div>  
  6.     <div region="center" title="center title" style="padding:5px;background:#eee;"></div>  
  7. </body>  
用法:
Layout Panel Options
NameTypeDescriptionDefault
titlestringlayout的標題文字,如不設置,則不能出現折疊按鈕null
regionstring

layout的位置,必須為以下的值: north, south, east, west, center.
(注:在如果不註明則不會顯示該Div)

 
borderboolean是否顯示邊框true
splitboolean顯示分拆條,並可拖動改變 Sizefalse
iconClsstringAn icon CSS class to show a icon on panel header.null
hrefstringAn URL to load data from remote site.null
Methods
NameParameterDescription
resizenoneSet the layout size.
panelregionReturn the specified panel, the 'region' parameter possible values:'north','south','east','west','center'.
collapseregionCollapse the specified panel, the 'region' parameter possible values:'north','south','east','west'.
expandregionExpand the specified panel, the 'region' parameter possible values:'north','south','east','west'.

转载于:https://www.cnblogs.com/DinoFung/archive/2012/02/13/2348699.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值