jquery实现组织架构图折叠效果代码
代码语言:html
所属分类:图表
代码描述:jquery实现组织架构图折叠效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>横向组织架构图</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.17.js"></script>
</head>
<body>
<div class="item-template" style="background:#fff;border-radius:50px;width:140px;border:solid 1px #ddd;overflow: hidden;box-shadow: 0px 0px 10px #eee;box-sizing:border-box;">
<img style="height:40px;width:40px;border-radius:50%;vertical-align:middle;" src="//repo.bfw.wiki/bfwrepo/image/5e0c6f962a0d0.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" />
<span style="display:inline-block;vertical-align:middle;font-size:12px;margin-left:10px;">组织架构图</span>
</div>
<div class="container"></div>
<script type="text/javascript">
var data = [{
name: 'fanjiantao',
children: [{
name: "1",
children: [{
name: "1-1"
}]
}, {
name: "副总裁",
type: "tag"
}, {
name: "2",
children: [{
name: '2-3',
type: "tag"
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0