当前位置: 首页 > 工具软件 > SY-UI > 使用案例 >

改变当前页面的element-ui样式

萧辰沛
2023-12-01

改变当前页面的element-ui样式

当前页面的scope中 修改就行 不会污染同一个组件在其他的页面的布局
如果样式被覆盖可以使用!important来加权

.el-table /deep/ .cell {
    display: flex !important;
    justify-content: center;
    padding-right: 10px !important;
}

.el-table >>> .cell {
    display: flex !important;
    justify-content: center;
    padding-right: 10px !important;
}
 类似资料: