v.c*_*jen 7 html css angular-material angular-material2 angular
从我的代码开始:
<!-- Edit Column -->
<ng-container mdColumnDef="edit">
<md-header-cell *mdHeaderCellDef> {{'companies.edit-column' | translate}}</md-header-cell>
<md-cell *mdCellDef="let element"><a (click)="toCompany(element.id)"><md-icon class="md-dark">edit</md-icon></a></md-cell>
</ng-container>
Run Code Online (Sandbox Code Playgroud)
要求是将编辑图标的位置调整到右侧(关于材料设计的右侧填充)?现在它似乎被强行左对接了.应用style="{text-align: right}" 到md-cell不起作用.
libs版本:
"@angular/material": "2.0.0-beta.10"
"@angular/cdk": "^2.0.0-beta.10",
"@angular/common": "^4.1.3"
Run Code Online (Sandbox Code Playgroud)
Veg*_*ega 11
使用以下任何一种:
mat-cell{
display:flex !important;
justify-content:flex-end!important;
}
::ng-deep .mat-cell{
display:flex !important;
justify-content:flex-end!important;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4443 次 |
| 最近记录: |