1
Hier ist die CSS-Datei, in der ich einige Grenze für die gesamte Tabelle anwendete.HTML5 CSS3 TableTag
#tableCount
{
border: 1px solid gray;
margin-left: 40px;
}
Hier ist die HTML-Datei wie folgt:
<table id="tableCount" style="width: 30%; height: 50%;" class="table table-striped" [mfData]="data | dataFilter : filterQuery" #mf="mfDataTable"
[mfRowsOnPage]="rowsOnPage" [(mfSortBy)]="sortBy" [(mfSortOrder)]="sortOrder">
<thead>
<tr id="t1">
<td colspan="3" style="color:white; width: 10%;">Status</td>
<td style="text-align:right;">
<button id="buttons" (click)="addRow()" type="button" class="btn btn-default">
<span style="color:black;" title="Add Row" class="glyphicon glyphicon-plus"></span>
</button>
</td>
</tr>
<tr>
<th style="width: 10%">S.No.</th>
<th style="width: 10%; color:white;">
<mfDefaultSorter by="status">Status</mfDefaultSorter>
</th>
<th style="width: 10%"></th>
<th style="width: 10%"></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of mf.data; let i=index">
<td>
{{i+1}}
</td>
<td>{{item.status}}</td>
<td></td>
<td style="text-align:right;">
<button id="buttons" (click)="editRow()" type="button" class="btn btn-default">
<span style="color:dark grey;" title="Edit Row" class="glyphicon glyphicon-edit"></span>
</button>
<button id="buttons" (click)="deleteRow(i)" type="button" class="btn btn-default">
<span style="color:red;" title="Delete Row" class="glyphicon glyphicon-trash"></span>
</button>
</td></tr>
</tbody>
<tfoot>
<tr style="width: 10%;">
<td style="text-align:center;" colspan="5">
<input id="footer" type="button" value="Submit"/>
</td>
</tr>
</tfoot>
</table>
Warum die Grenze von der rechten Seite nicht angewendet wird, ich versucht haben, auf unterschiedliche Weise zu tun. Hier feststecken.
Jede Hilfe geschätzt, Vielen Dank im Voraus.
Ihre Grenze von Elementen wird überlappt in Ihrem tbody/thead. Ein Hotfix könnte sein, jedem tr-Element einen Rahmen hinzuzufügen. –
@ ManmeetS.Oberoi Immer noch nicht funktioniert, habe ich jedem tr-Element Rand hinzugefügt –