<mat-card id="card">
<mat-card-title>
login
</mat-card-title>
<mat-card-content>
<mat-form-field>
<input matInput placeholder="email">
</mat-form-field><br/>
<mat-form-field>
<input matInput placeholder="password">
</mat-form-field><br/>
<button mat-raised-button color="primary" style="margin-right:5px;">login</button>
<button mat-raised-button color="primary" style="margin-right:5px;">register</button>
</mat-card-content>
我尝试了这个:
display: block;
margin: auto;
我的代码现在无法正常工作,希望能得到帮助。我对Angular的样式还不太熟悉。