easyui-layout个人实例
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
href="<%=path%>/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
href="<%=path%>/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/easyui/demo.css">
<script type="text/javascript"
src="<%=path%>/easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
src="<%=path%>/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
$('a[title]').click(function(){
var src = $(this).attr("title");
var title = $(this).html();
if($("#tt").tabs('exists',title)){
$("#tt").tabs('select',title);
}else{
$("#tt").tabs('add',{
title:title,
content:'<iframe frameborder=0 style="width:100% ;height:100%" src='+src+'><iframe/>',
closable:true
});
}
});
});
</script>
<style type="text/css">
.easyui-accordion a {
font-family: "微软雅黑", "宋体", Arial, sans-serif;
display: block;
height: 10px;
text-decoration: underline;
}
</style>
</head>
<body>
<div id="cc" class="easyui-layout" fit=true style="width: 100%; height: 100%;">
<div region="north" title="easyui-layout" split="false" style="height:100px"></div>
<div region="west" iconCls="icon-ok" split="true" title="菜单" style="width:200px" >
<div id="aa" class="easyui-accordion" fit=true>
<div title="用户管理" iconCls="icon-save" style="overflow:auto;padding:10px;">
<a title="user.jsp">用户列表</a><br>
<a title="index2.jsp">用户功能</a>
</div>
<div title="岗位管理" iconCls="icon-reload" style="overflow:auto;padding:10px;">
</div>
<div title="权限管理">
</div>
<div title="资源管理">
</div>
</div>
</div>
<div region="center" title="主界面" style="padding:5px;">
<div id="tt" class="easyui-tabs" fit=true style="width: 500px; height: 250px;">
</div>
</div>
</div>
</body>
</html>
最新文章
- python raise a string exception is deprecated
- 疯狂Android讲义 - 学习笔记(三)
- PerformSelector
- 激活PHPStorm 2016.3
- jquery 下拉选择框/复选框常用操作
- 救火必备linux命令
- usb由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备
- 较具体的介绍JNI
- POJ_1321——棋盘问题,回溯+剪枝
- 1038. Recover the Smallest Number (30) - 字符串排序
- tensorflow源代码方式安装
- java将数据库中查询到的数据导入到Excel表格
- LeetCode专题-Python实现之第26题:Remove Duplicates from Sorted Array
- SpringBoot整合mybatis多数据源,支持分布式事务
- LabVIEW(四):数据存储和文件IO
- [UE4]Size Box
- Python 对图片进行人脸识别
- C++中的Thunk技术 / 非静态类成员函数作为回调函数 的实现方法
- Excel 帮助无法正常工作的解决方法
- ubuntu下 gedit中文乱码