這篇文章給大家分享的是有關jQuery中布局組件EasyUI Layout怎么用的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
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" ><strong><font size=2 color="color">您好,歡迎<span > </span>來到地球!</br>這個世界充滿了危險,勸你早點回去!</font></strong></div> <div id="menu" data-options="region:'west',split:true,title:'2014-15賽季賽程'" > <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:'快速通道'" ><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 href="http://blog.csdn.net/caohaicheng" rel="external nofollow" >逃生指南</a></div> <div data-options="region:'south',border:false" ><center>http://blog.csdn.net/caohaicheng</center></div> <div data-options="region:'center',title:'主界面'"> </div> </body> </html>
效果圖:
感謝各位的閱讀!關于“jQuery中布局組件EasyUI Layout怎么用”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。