问题描述
用①/deep/ ②!important 覆盖第三方组件样式不生效
关于important的覆盖问题
important覆盖
// 示例
<div class="sample"> </div>
// 1
.sample {
background: red !important;
}
// 2.
div {
background: red !important;
}
// 3.
.sample {
background: red !important
}
2 3 权值一样,但3是后声明的,会覆盖2