效果:
(1)前台代码:
样式:
<style type="text/css">
.close, .open {
background:url(/base/css/easyui/gray/images/tree_icons.png);
}
.close {
float: left;
width: 16px;
height: 16px;
background-position:-96px 0px;
cursor:pointer;
}
.open {
display:none;
float: left;
width: 16px;
height: 16px;
background-position:-113px 0px;
cursor:pointer;
}
.close01 {
float: left;
width: 16px;
height: 16px;
}
</style>
<asp:Repeater ID="rptData" runat="server" OnItemCommand="rptData_ItemCommand"
OnItemDataBound="rptData_ItemDataBound">
<HeaderTemplate>
<table cellpadding="0" cellspacing="0" id="dg" class="table table-bordered table-striped with-check table-condensed table-hover">
<the