Home  >  Q&A  >  body text

javascript - How to modify the input style of Element-UI

1. Using css to overwrite the style will not take effect

2. The code is as follows:

<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. The css style does not change after writing

伊谢尔伦伊谢尔伦2712 days ago1233

reply all(2)I'll reply

  • 黄舟

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

    In vue, just remove the scoped style. It’s about scope

    reply
    0
  • 習慣沉默

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

    Try adding scoped to the style tag

    reply
    0
  • Cancelreply