layout 布局組件,依賴于panel,自己開發個web小程序的時候直接用這個組件布局很方便。
對于一個web程序原來說,特別是像我這種一遇到界面美化問題就找美工的程序員,想自己獨立的開發一個東西,除了套用以前的項目中的界面布局之外就沒別的辦法了,雖然我們可以用ifame切分出一個界面布局,但是我不會添加樣式啊。使用layout組件就可以幫我們快速的有一個界面布局,而且美觀效果也看得過去。
看個例子:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="easyui/jquery.min.js"></script> <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script> <script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js" ></script> <link rel="stylesheet" type="text/css" href="easyui/themes/bootstrap/easyui.css" rel="external nofollow" /> <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" /> <title>Document</title> </head> <body class="easyui-layout"> <div data-options="region:'north',border:false" style="height:60px;background:#00ffcc;padding:10px"><strong><font size=2 color="color">您好,歡迎<span style="white-space:pre"> </span>來到地球!</br>這個世界充滿了危險,勸你早點回去!</font></strong></div> <div id="menu" data-options="region:'west',split:true,title:'2014-15賽季賽程'" style="height:100px;width:150px;padding:10px;"> <ul> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >西甲賽程</a></strong> </li> <br> <br> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >英超賽程</a></strong> </li> <br> <br> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >德甲賽程</a></strong> </li> <br> <br> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >法甲賽程</a></strong> </li> <br> <br> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >意甲賽程</a></strong> </li> <br> <br> <li> <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >歐冠賽程</a></strong> </li> </ul> </div> <div data-options="region:'east',split:true,collapsed:true,title:'快速通道'" style="width:100px;padding:10px;"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >購買船票</a></br><a rel="external nofollow" >逃生指南</a></div> <div data-options="region:'south',border:false" style="height:25px;background:#A9FACD;padding:10px;"><center>http://blog.csdn.net/caohaicheng</center></div> <div data-options="region:'center',title:'主界面'"> </div> </body> </html>
效果圖:

點此下載源代碼:jQuery Easy UI Layout(布局)組件
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持武林網。
新聞熱點
疑難解答