个人笔记:
//tabs切换原背景色样式去除
::v-deep .el-tabs__item {
box-shadow: none !important;
}
//下划线整条颜色更改
::v-deep .el-tabs__nav-wrap::after {
background-color: #48417e;
}
//下划线切换高亮
::v-deep .el-tabs__active-bar {
background-color: #7538f0;
}
//切换文字高亮
::v-deep .el-tabs__item.is-active {
color: #7538f0;
font-weight: 700;
border-color: transparent;
}
本文介绍如何使用CSS深度选择器自定义Element UI中的ElTabs组件样式,包括移除选项卡的阴影效果、更改选中状态下的文字颜色及字体粗细、调整活动选项卡下划线的颜色等。

8283

被折叠的 条评论
为什么被折叠?



