【发布时间】:2021-05-25 02:28:49
【问题描述】:
我不太擅长 CSS,所以我有一个问题要问新手。我有以下 html 片段:
<div _ngcontent-vyb-c4="" class="form-row">
<div _ngcontent-vyb-c4="" class="col-md-12">
<div _ngcontent-vyb-c4="" class="form-group">
<h5 _ngcontent-vyb-c4="">Contract</h5>
<button _ngcontent-vyb-c4="" class="buttons-form mat-mini-fab mat-button-base mat-primary" color="primary" mat-mini-fab="" type="button" ng-reflect-color="primary">
<span class="mat-button-wrapper">
<mat-icon _ngcontent-vyb-c4="" class="mat-icon notranslate material-icons mat-icon-no-color" role="img" aria-hidden="true">settings</mat-icon>
</span>
...
如何将按钮与h5右侧的图标对齐,在最右边对齐。这是当前布局的屏幕截图。我希望齿轮图标和按钮位于同一行 这是 Angular 项目的一部分,好像这很重要。
【问题讨论】: