A. *_*kau 8 html css angular-material angular-flex-layout angular
这是我的HTML代码片段:
<mat-card-content>
<div fxLayout="row" fxFlex="1 0 0">
<div fxLayout="column">First</div>
<div fxLayout="column" style="margin-left:auto">Second</div>
</div>
</mat-card-content>
Run Code Online (Sandbox Code Playgroud)
和CSS:
.mat-card-content {
color: rgba(0, 0, 0, 0.700);
}
Run Code Online (Sandbox Code Playgroud)
我需要在角度材料卡元素内实现柔性布局,以便两列能够响应并包含一些文本,如杂志中的内容:
现在我已经完成了 mat-card-header 并且它工作正常。任何建议将不胜感激。
尝试如下:
<div fxLayout="row" fxLayoutGap="10">
<div fxFlex="50%">
<p> first div </p>
</div>
<div fxFlex="50%">
<p> second div </p>
</div>
</div>Run Code Online (Sandbox Code Playgroud)
2022 年更新:
| 归档时间: |
|
| 查看次数: |
18976 次 |
| 最近记录: |