html - ng-container 从下到上显示文本
问题描述
我有一个像这样的 ng 容器:
<ng-container [matColumnDef]="column" *ngFor="let column of columns">
<th mat-header-cell *matHeaderCellDef>{{ column }}</th>
<td mat-cell *matCellDef="let element">{{element.name}}</td>
</ng-container>
我试图 <th mat-header-cell *matHeaderCellDef>{{ column }}</th>
从下到上显示文本,而不是从左到右。我尝试使用flex-direction: column
,但它不起作用。有可能做到这一点吗?
这是我的桌子的设计。我希望符号(A,B,C,D,E)下列中的文本从下到上显示,而不是像现在这样。文本应该是垂直的而不是水平的。
解决方案
轻松使用 flex,只需使用
{flex-direction: column-reverse;}
推荐阅读
- scala - 如何将 DataFrame 转换为 Dataset [CaseClass]?
- freertos - vTaskGetRunTimeStats 输出在哪里打印?
- javascript - 根据 JSON 结果生成按钮
- java - Java:连接到 psql 数据库会引发错误 (ClassNotFoundException)
- mongodb - Mongod 访问被拒绝
- sql - 循环遍历不同的数据库并联合选择特定的表
- html - 根据兄弟元素中包含的元素设置 CSS 背景颜色
- javascript - 消息提示确认后如何关闭任务
- sql-server - SQL Server 数据透视表显示为一行
- javascript - 从 json 数组中填充 vuetify 选择