html - 角度容器大小
问题描述
在我的代码中,我有一个显示不同字段的表格。一个领域明显更大,占用了大量空间,超出了它的需要。如何调整该字段的大小并使其更小?
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>
解决方案
推荐阅读
- scrapy - 如何让scrapy在继续下一行之前等待请求结果
- php - 如何在 Laravel 项目的 Ubuntu 上使用 VSCode 设置 XDebug?
- react-native - 如何使用反应钩子仅用一行代码获取我的所有状态数据?
- r - 查找每个人的最大或最小日期值
- python - 如何在 python 中更新列表列表?
- symmetricds - 删除转换不适用于列
- reactjs - 有没有办法在 Typescript 中使用类型中的值作为 defaultProp
- arrays - 如果缺少另一个数组中存在的值,如何在数组中插入 NaN?
- c# - 联系肥皂网络服务时是否考虑命名空间?
- python - keras 模型权重 1.x 到 2.x