【发布时间】:2021-04-29 04:34:50
【问题描述】:
我想在卡片内有一个引导表,但它不适合它。
代码如下:
<div class="card-columns d-flex justify-content-center mt-3">
<div class="card" *ngFor="let test of tests">
<div class="card-header">
<strong>
test
</strong>
</div>
<div class="card-body" *ngFor="let rule of test.rules; let i = index">
<table class="table table-striped text-center">
<thead>
<tr>
<td>
<strong>IDs</strong>
<button type="button" class="no-border btn-link-clear">
<i class="fa fa-change "></i>
</button>
</td>
</tr>
</thead>
<tbody>
<tr *ngFor="let id of rule.ids">
<td >
{{ id }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
有什么建议吗?
【问题讨论】:
-
可以把组件的css贴一下吗?
标签: html angular twitter-bootstrap