因此,我有一個表的指定區域,有時從數據庫中讀取後,表沒有完全填充到該區域的底部。對於空白的空間,我想在它周圍有一個邊框連接到表格,所以它看起來像表格一直到底部,但剩餘的空間將只是一個由邊框包圍的大空白空間(看起來像它的一部分的表)用邊框css填充表空行
關於如何做到這一點的任何提示?喜歡使用CSS只
代碼:
<div class="col-md-11" style="width:86%">
<div class="table-responsive user-table" style="overflow-y:auto; overflow-x:hidden">
<table class="table table-striped table-bordered" id="table_{{table.name}}">
<thead>
<tr>
<th ng-repeat="header in table.headers track by $index" style="background-color: #0D3C47; color:white">
<div data-ng-if="header.type !== 'checkbox'">{{header}}</div>
<div data-ng-if="header.type === 'checkbox'">{{header.value}}</div>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in table.rows track by $index">
@*<tr ng-repeat="row in table.rows | activeOrNot: table.checkboxCol: table.filterIsEnabled track by $index">*@
<td ng-repeat="item in row | filter: {type: '!GUID'} track by $index "
ng-click="table.selectedRow(row)"
ng-class="{ 'highlight' : row === table.selected}">
<div data-ng-if="item.type === undefined">{{item}}</div>
<div data-ng-if="item.type === 'checkbox'">
<input type="checkbox" ng-checked="item.checked" ng-disabled="true">
</div>
<div data-ng-if="item.type === 'GUID'">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th class="text-right" style="padding-right: 30px; font-size: 15px">
<div>Showing result {{table.entries.displayingAmount}} of {{table.entries.totalAmount}}</div>
</th>
</tr>
</thead>
</table>
</div>
這是自舉。這樣做的唯一的CSS樣式是類user-table
具有的代碼有什麼height: 720
一峯呢,和我想要它看起來像: https://awwapp.com/s/c7447569-50a4-49a7-805b-43eb0770985f/