Heim  >  Fragen und Antworten  >  Hauptteil

javascript – So ändern Sie den Eingabestil von Element-UI

1. Die Verwendung von CSS zum Überschreiben des Stils hat keine Wirkung

2. Der Code lautet wie folgt:

<el-form-item>
   <el-input v-model="form.name" auto-complete="off" placeholder="手机号\邮箱\用户名" class="login-form-input"></el-input>
</el-form-item>

<style>
    .login-form-input .el-input__inner {
        border: 0 none;
        border-bottom: 1px solid #ccc;
        border-radius: 0px;
    }
</style>

3. Der CSS-Stil ändert sich nach dem Schreiben nicht

伊谢尔伦伊谢尔伦2712 Tage vor1229

Antworte allen(2)Ich werde antworten

  • 黄舟

    黄舟2017-05-19 10:40:28

    在vue中,把style的scoped去掉就可以了。跟作用域有关

    Antwort
    0
  • 習慣沉默

    習慣沉默2017-05-19 10:40:28

    style标签加scoped试试

    Antwort
    0
  • StornierenAntwort