【发布时间】:2018-10-11 20:59:48
【问题描述】:
我正在使用 Angular 材料来显示表格数据。这只是部分代码。表嵌入材料卡中。当字段的长度更长时,表格单元格中的数据会变得混乱。我已经附上了相同的屏幕截图
<mat-card-content fxLayout="column" fxLayoutAlign="space-between" fxFlex>
<h4>Incidents</h4>
<mat-table #table [dataSource]="dataSource" matSort class="mat-elevation-z8">
<ng-container matColumnDef="IncidentId">
<th mat-header-cell fxFlex *matHeaderCellDef mat-sort-header>IncidentId</th>
<td mat-cell fxFlex *matCellDef="let element">{{ element.IncidentId }}</td>
</ng-container>
...
它的外观如下:
我使用了自动换行,但没有帮助
相同的代码以如下格式出现在 IE 中
[2
【问题讨论】: