日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

jQuery EasyUI API 中文文档 - 布局(Layout)

發布時間:2025/3/16 编程问答 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jQuery EasyUI API 中文文档 - 布局(Layout) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

依賴

  • panel
  • resizable

用法示例

創建 Layout

經由標記創建 Layout 。添加 'easyui-layout' 類到 <div/> 標記。

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>??

在整個頁面上創建 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

1.? $('#cc').layout(); ??

2.? //?折疊?west?panel ??

3.? $('#cc').layout('collapse','west');??

?

Layout Panel 選項

名稱

類型

說明

默認值

title

string

Layout panel 的標題文字。

null

region

string

定義 layout panel 的位置,其值是下列之一:north、south、east、west、center。

?

border

boolean

True 就顯示 layout panel 的邊框。

true

split

boolean

True 就顯示拆分欄,用戶可以用它改變panel 的尺寸。

false

iconCls

string

在panel 頭部顯示一個圖標的CSS 類。

null

href

string

從遠程站點加載數據的 URL 。

null

方法

名稱

參數

說明

resize

none

設置 layout 的尺寸。

panel

region

返回指定的 panel,'region' 參數可能的值是:'north'、'south'、'east'、'west'、'center'。

collapse

region

折疊指定的 panel,'region' 參數可能的值是:'north'、'south'、'east'、'west'。

expand

region

展開指定的 panel,'region' 參數可能的值是:'north'、'south'、'east'、'west'。



    風流涕淌?翻譯。不當之處,敬請指正。轉載請保留出處!

?

總結

以上是生活随笔為你收集整理的jQuery EasyUI API 中文文档 - 布局(Layout)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。