首先先引用jQuery.js,从资源上下载,仔细看认真看什么难事都不是什么难事
<script src="/UI/Scripts/jquery-1.11.3.min.js"></script>
1、tree样式
#TheBinding3 .fa.fa-minus{
width: 25px;
height: 25px;
margin: 0;
padding: 0;
text-align: center;
line-height: 25px;
cursor:pointer;
}
#TheBinding3 .fa.fa-plus{
width: 25px;
height: 25px;
margin: 0;
padding: 0;
text-align: center;
line-height: 25px;
cursor:pointer;
}
#TheBinding3 .left_content{
float: left;
max-width: 50%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-right: 8px;
font-size: 12px;
}
#TheBinding3 .left2_content{
float: left;
max-width: 50%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color:red;
font-size:12px;
}
#TheBinding3 .right_content{
float: left;
padding-right:10px;
}
.dd3-content.contort{
background: rgba(0, 218, 255, 0.2);
}
#TheBinding3 .dd3-handle{
padding:0;
cursor: auto;
position: absolute;
margin: 0;
left: 0;
top: 0;
cursor: pointer;
width: 25px;
height: 25px;
white-space: nowrap;
overflow: hidden;
border: 1px solid #d4d