javascript - How to modify the input style of Element-UI
伊谢尔伦
伊谢尔伦 2017-05-19 10:38:28
0
2
1277

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

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
黄舟

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

習慣沉默

Try adding scoped to the style tag

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template