首页 > 解决方案 > 角度容器大小

问题描述

在我的代码中,我有一个显示不同字段的表格。一个领域明显更大,占用了大量空间,超出了它的需要。如何调整该字段的大小并使其更小?

在此处输入图像描述

HTML:

            <ng-container matColumnDef="StockIntegrationCode">
                <th mat-header-cell *matHeaderCellDef> Stok Kodu </th>
                <td *matCellDef="let row; let i = index">
                    <span *ngIf="EditIndex != i">{{row.Product?.StockIntegrationCode}}</span>
                    <mat-form-field floatLabel="never" *ngIf="EditIndex == i" class="w-100-p">
                        <input matInput name="StockIntegrationCode"
                            [(ngModel)]="row.Product.StockIntegrationCode"
                            (blur)="filterProductByStockIntegrationCode($event.target.value, row)">
                    </mat-form-field>
                </td>
            </ng-container>

标签: htmlcssangulartypescriptangular-material

解决方案


推荐阅读