// 输入框
<el-input class="header-input"></el-input>
//选择框
<el-select v-model="selectVal" class="selecter">
<el-option v-for="item in options"></el-option>
</el-select>
<style> //只有加上::v-deep才能成功添加样式
::v-deep .header-input input{
background: #F1F7FD;
}
::v-deep .selecter input{
background: #2579F8;
}
</style>
elementUI的el-select和el-input中样式无法添加问题解决
最新推荐文章于 2024-05-15 16:33:32 发布