2つのテーブルを上下に積み重ねています。その2つを区切る場所にはmargin-bottom
があります。2つの垂直HTMLテーブルを整列する
、現在のコードは次のようになります。
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<table class="....">
<thead>
<tr>
<th class="...."></th>
<th>
<a href="#list-table" class="....">
<span class="...">Batch Queue</span>
<span class="..."></span>
</a>
</th>
<th>
<a href="#list-table" class="...">
<span class="...">Start Date</span>
<span class="..."></span>
</a>
</th>
<th>
<a href="#list-table" class="...">
<span class="...">Status</span>
<span class="..."></span>
</a>
</th>
<th>
<a href="#list-table" class="...">
<span class="...">Est Time to Complete</span>
<span class="..."></span>
</a>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="batch in vm.batches | filter : {completion_status:'!'+'100'}">
<td ng-class="batch.completion_status === '100' ? 'table-status-ok' : (batch.completion_status > '60' ? 'table-status-warning' : 'table-status-error')"></td>
<td class="..."><a href="javascript:void(0);">{{batch.batch_queue_name}}</a>
</td>
<td class="...">{{batch.start_date}}</td>
<td class="...">
<div class="progress-bar">
</div>
</td>
<td class="...">{{batch.end_date}}</td </tr>
</tbody>
</table>
<table class="...">
<thead>
<tr>
<th class="..."></th>
<th>
<a href="#list-table" class="...">
<span class="...">Completed Batches</span>
<span class="..."></span>
</a>
</th>
<th>
<a href="#list-table" class="...">
<span class="...">Start Date</span>
<span class="..."></span>
</a>
</th>
<th>
<a href="#list-table" class="...">
<span class="...">Completed Date</span>
<span class="..."></span>
</a>
</th>
<th>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="batch in vm.batches | filter : {completion_status:'100'}">
<td class="table-status-ok"></td>
<td class="..."><a href="javascript:void(0);">{{batch.batch_queue_name}}</a>
</td>
<td class="...">{{batch.start_date}}</td>
<td class="...">{{batch.end_date}}</td>
<td></td>
</tr>
</tbody>
</table>
だから、基本的にテーブルはUIに次のようになります。
二つの別々のテーブルを見ることができるように互いの上に積み重ねられている。私が望むのは、下の表の列が、上の列の列と垂直にインラインになることです。
ブランクを含めると、<td></td>
が動作しませんでした。
特定の幅をtdまたは幅に追加します。 4 equall列の場合 –
列の幅を明示的に指定する必要があります。それ以外の場合、列は自動サイズになります –