【问题标题】:How to remark inputs? HTML/CSS如何注释输入? HTML/CSS
【发布时间】:2020-07-10 05:25:13
【问题描述】:

我做了一个登录表单,但输入看起来像这样,我怎么能在输入的框架下划线? html:

  <div class="center">
    <form #f [formGroup]="loginForm" (ngSubmit)="submit()">
      <img id="user" class="user" [src]="photo">
      <div class="messagebox-container">
        <mat-form-field>
          <input
            matInput
            formControlName="username"
            type="text"
            placeholder="e-mail"
          />
      </div>

      <div>
        <mat-form-field>
          <input
          matInput
          formControlName="password"
          type={{typePass}}
          id="password"
          name="password"
          class="form-control"
          placeholder="contraseña"
          [attr.disabled]="loading ? '' : null"
          />
        </mat-form-field> 

【问题讨论】:

    标签: html css angular


    【解决方案1】:

    您是否检查过该组件所属的模块是否正在从@angular/material/input 导入 MatInputModule?有时我错过它时会遇到类似的问题。

    您可以查看文档here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-23
      • 2011-03-18
      • 2021-12-12
      • 2014-12-11
      • 2012-04-02
      • 2012-08-03
      • 1970-01-01
      • 2015-08-24
      相关资源
      最近更新 更多