使用easyUI创建XP风格左侧面板
来源:互联网 发布:2017高仿耐克淘宝店 编辑:程序博客网 时间:2024/05/01 04:08
@author YHC
通常,资源管理器文件夹在XP下的左侧的panel包含一些常见任务,这个教程向你展示如何创建XP左侧面板风格,使用easyui的panel插件.
查看 Demo
定义一些panel
我们定义一些panel显示一些任务,每个panel应该至少有collapse(折叠)/expand(展开)工具按钮.代码看起来就像这些:
<div style="width:200px;height:auto;background:#7190E0;padding:5px;"> <div class="easyui-panel" title="Picture Tasks" collapsible="true" style="width:200px;height:auto;padding:10px;"> View as a slide show<br/> Order prints online<br/> Print pictures </div> <br/> <div class="easyui-panel" title="File and Folder Tasks" collapsible="true" style="width:200px;height:auto;padding:10px;"> Make a new folder<br/> Publish this folder to the Web<br/> Share this folder </div> <br/> <div class="easyui-panel" title="Other Places" collapsible="true" collapsed="true" style="width:200px;height:auto;padding:10px;"> New York<br/> My Pictures<br/> My Computer<br/> My Network Places </div> <br/> <div class="easyui-panel" title="Details" collapsible="true" style="width:200px;height:auto;padding:10px;"> My documents<br/> File folder<br/><br/> Date modified: Oct.3rd 2010 </div> </div>
自定义panel外观效果
注意:那个视图外观不是我们想要的,我们必须改变panel头部的背景图片和collapse(折叠)/expand(展开)按钮的icon的样式,做到这个一点都不难,我们需要做的是重新定义一些CSS.
.panel-body{ background:#f0f0f0; } .panel-header{ background:#fff url('images/panel_header_bg.gif') no-repeat top right; } .panel-tool-collapse{ background:url('images/arrow_up.gif') no-repeat 0px -3px; } .panel-tool-expand{ background:url('images/arrow_down.gif') no-repeat 0px -3px; }正如你所看到的,然而使用easyui定义用户界面非常简单.
下载 EasyUI示例代码:
easyui-panel-demo.zip
- 使用easyUI创建XP风格左侧面板
- jQuery EasyUI 布局 - 创建 XP 风格左侧面板
- jQuery EasyUI使用教程之创建XP风格的左侧面板
- 使用easyUI创建折叠面板
- jQuery EasyUI使用教程之创建可折叠面板
- easyui动态创建tab面板
- 窗口使用XP风格
- jQuery EasyUI使用教程之在面板中创建复杂布局
- stemapp左侧面板
- jsp简洁左侧面板
- EasyUI 面板
- SDK使用xp风格控件
- jPanelMenu – 创建面板风格菜单的 jQuery 插件
- 自动改变左侧面板大小
- 使用 Windows XP 的外观风格
- 使用 Windows XP 的外观风格
- 使用 Windows XP 的外观风格
- 使用manifest文件实现XP风格界面
- Python中如何避免使用多个分支语句(多个if和else)——函数字典(Function Map)简介
- wince的png贴图
- 堆与栈的区别
- gSoap客户端使用步骤与问题解决
- JavaScript实现x秒后自动跳转
- 使用easyUI创建XP风格左侧面板
- IE老提示“数字证书”过期/错误的解决方法
- spring的详细复习讲解
- view
- 学习JFreeChart类,编写了柱状图、饼图、甘特图,可以在DWZ中显示
- ListView 和TreeView控件相互拖拽
- Elecom公司推出首款NFC手机键盘
- 利用SQL语句创建、修改、执行、删除存储过程(简单应用)
- does not contain debug information. Press OK to Continue