首页 > 解决方案 > 如何为有角度的垫卡添加颜色

问题描述

我只是想为这张卡添加更多颜色,我该怎么做?这是我当前的垫卡代码:

<mat-card>
  <mat-card-content>
    <form [formGroup]="loginForm" (ngSubmit)="onSubmit()">
      <h2>Log In</h2>
<!--      <mat-error *ngIf="f.">-->
<!--        The username and password were not recognised-->
<!--      </mat-error>-->
      <mat-form-field class="full-width-input">
        <input matInput type="text" placeholder="Username" formControlName="username" required>
        <mat-error *ngIf="f.username.errors">
          Please provide a valid username address
        </mat-error>
      </mat-form-field>
      <mat-form-field class="full-width-input">
        <input matInput type="Password" placeholder="Password" formControlName="password" required>
        <mat-error *ngIf="f.password.errors">
          Please provide a valid password
        </mat-error>
      </mat-form-field>
      <button mat-fab color="primary">Login</button>
    </form>
  </mat-card-content>
</mat-card>

我的垫卡的当前状态

标签: htmlangular

解决方案


推荐阅读