1.一般情况下,添加!important将自己的优先级设置高,例如
.el-tabs__header{
position: static !important;
}
2.以上方法不行,大概率是由于<style lang ="css" scoped></style>中的scoped导致的,不建议直接去掉,会造成全局污染,直接在页面上新建一个<style></style>再将自己定义的样式放入即可,
例如:
<style lang ="css" scoped>。。。//原由样式
</style>
//新增样式
<style >
.el-tabs__header {
position: static !important;
}
</style>
浙公网安备 33010602011771号