0
我有一个表中最后一列有一个可点击的箭头来显示下面的嵌套表。Show Div in标记和跨越整个表空间
<table class="table table-hover table-striped">
<thead>
<tr>
<th>1</th>
<th>2</th>
<th> </th>
</tr>
</thead>
<tbody>
<tr *ngFor="let dData of dDatas;>
<td>{{dData.Name}}</td>
<td>{{dData.Desc}}</td>
<td>
<div (click)="onClick()"><span class="glyphicon" [ngClass]="{'glyphicon-chevron-up': dcData.opendPanel , 'glyphicon-chevron-down': !dcData.opendPanel }"></span></div>
<div [hidden]="!dData.opendPanel">
//another table
</div>
</td>
</tr>
</tbody>
</table>
我的问题是内部表来在最后<td>
和格式不正确。我想让内表出现在一个新的行中并跨越外表的宽度。
它的工作原理!干杯!! – Aruna
不客气! –