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
In vue, just remove the scoped style. It’s about scope
Try adding scoped to the style tag