jQuery EasyUI 折叠面板accordion的使用实例(分享)
1、对折叠面板区域 div 设置 class=”easyui-accordion”
2、在区域添加多个 div, 每个 div 就是一个面板 (每个面板一定要设置 title 属性)。
3、设置面板属性 fit 为 true,自适应父容器大小
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>easyui-折叠面板accordion的使用</title> <!-- 导入jquery核心类库 --> <script type="text/javascript" src="../js/jquery-1.8.3.js"></script> <!-- 导入easyui类库 --> <link id="easyuiTheme" rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css"> <link rel="stylesheet" type="text/css" href="../css/default.css"> <script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script> </head> <body class="easyui-layout"> <div data-options="region:'north',title:'你我他学习吧-学习Java的好博客!'" style="height:100px"></div> <div data-options="region:'west',title:'菜单导航'" style="width:200px"> <!--折叠面板--> <div class="easyui-accordion" data-options="fit:true"> <div data-options="title:'基础菜单'">面板一</div> <div data-options="title:'系统菜单'">面板二</div> </div> </div> <div data-options="region:'center',title:'中部区域'"></div> <div data-options="region:'east',title:'东部区域'" style="width:100px"></div> <div data-options="region:'south',title:'南部区域'" style="height:100px"></div> </body> </html>
相关推荐
EdwardSiCong 2020-11-23
85477104 2020-11-17
hhanbj 2020-11-17
81427005 2020-11-11
seoppt 2020-09-13
honeyth 2020-09-13
WRITEFORSHARE 2020-09-13
84483065 2020-09-11
momode 2020-09-11
85477104 2020-08-15
83510998 2020-08-08
82550495 2020-08-03
tthappyer 2020-08-03
84901334 2020-07-28
tthappyer 2020-07-25
TONIYH 2020-07-22
tztzyzyz 2020-07-20
83510998 2020-07-18
81463166 2020-07-17