折叠效果图如下
哈哈哈,代码如下:
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap-table-expandable.css">
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-table-expandable.js"></script>
</head>
<body>
<div class="htmleaf-container">
<div class="container">
<div class="table-responsive">
<table style="word-break:break-all; word-wrap:break-all;" class="table table-hover table-expandable">
<thead>
<tr>
<th>单号</th>
<th>派送人</th>
<th>收货人</th>
<th>操作</th>
</tr>
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
<tr class="even">
<td class="">62345678</td>
<td class="">1111</td>
<td class="">1111</td>
<td class="">详情</td>
</tr>
<tr>
<td colspan="5">
哈哈哈哈测试与
</td>
</tr>
<tr class="even">
<td class="">201203814</td>
<td class="">2222</td>
<td class="">2222</td>
<td class="">详情</td>
</tr>
<tr>
<td colspan="5">
<div class="tabbable">
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a data-toggle="tab"
href="#home">
<i class="green icon-home bigger-110"></i> 发货单信息
</a></li>
<li><a data-toggle="tab"
href="#records">
<i class="green icon-comment bigger-110"></i> 商品详情
</a></li>
</ul>
<div class="tab-content">
</div>
</div>
<div id="home" class="tab-pane in active">
<div class="profile-user-info profile-user-info-striped">
<div class="profile-info-row"
style="display: -webkit-box;height: 35px;">
<div class="profile-info-name">
<span>单号:</span>
</div>
<div class="profile-info-value" style="width:20%">
<span class="editable">
hhhhh</span>
</div>
</div>
</div>
<div class="hr dotted"></div>
</br>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>