- 使用 /deep/,用 buttom 举例
<div class="WrapBtn">
<el-button type="primary">主要按钮</el-button>
</div>
<style>
/deep/.WrapBtn{
width: 100%;
}
.el-button{
background:blue;
}
</style>
<div class="WrapBtn">
<el-button type="primary">主要按钮</el-button>
</div>
<style>
/deep/.WrapBtn{
width: 100%;
}
.el-button{
background:blue;
}
</style>