EasyUi---layout整體佈局

UI效果圖:
這裏寫圖片描述

參考代碼:

<script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../js/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" type="text/css" href="../js/jquery-easyui-1.4.1/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../js/jquery-easyui-1.4.1/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../css/koa.css" />
<link rel="stylesheet" type="text/css" href="../css/style_easyui.css" />

<div class="easyui-layout" fit="true">
<div data-options="region:'north',border:false" style="height:60px;width:100%;overflow:hidden">  
    <?php require_once '../files/frameTop.php';?>
</div>  
    <!-- 創建面板 -->
    <div data-options="region:'west',title:'導航',split:true" style="width:180px;" href="./navigation.php"></div>   
    <div data-options="region:'center',title:'工作面板'" style="padding:2px;background:#eee;">
        <div id="work_tabs" class="easyui-tabs" fit="true">
            <div title="歡迎使用" fit="true"></div>
        </div>
    </div>
</div>

注意:
1、easyui插件需要下載:http://pan.baidu.com/s/1qWOFKZU
2、frameTop.php是指綠色部分的網頁頭,可自己定義或者刪除;
3、navigation.php是指左邊導航欄。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章