Elemnet UI之tab切换样式

需求:
在这里插入图片描述
Elemnet UI提供的:
tabs:https://element.eleme.cn/#/zh-CN/component/tabs
在这里插入图片描述
修改:

/deep/ .el-tabs {
  //   background: rgba(2, 15, 43, 0.7);背景颜色
  /deep/ .el-tabs__header {
    // margin-bottom: 0.1rem; //
    // margin-bottom: 0;
    /deep/ .el-tabs__nav {
      height: 40px !important;
      //   height: 0.4rem !important;
    }
    /deep/ .el-tabs__nav-wrap::after {
      background-color: transparent !important; //底部线条
    }
    // .el-tabs__active-bar
    /deep/ .el-tabs__active-bar {
      background-color: #50a0ff !important; //所选中tab的底部线条
      height: 2px !important;// tab线条的高度
      //   height: 0.02rem !important;
    }
    /deep/ .el-tabs__item {
      //每个tab
      color: #a0b2d3;
      font-size: 20px;
      //   font-size: 0.22rem;
      font-family: Source Han Sans CN;
      font-weight: bolder;
      height: 38px;
      line-height: 38px;
      //   height: 0.38rem;
      //   line-height: 0.38rem;
    }
    // 去除选中 的蓝色 边框
    /deep/ .el-tabs__item:focus.is-active.is-focus:not(:active) {
      -webkit-box-shadow: none;
      box-shadow: none;
    }
    /deep/ .is-active {
      //选中 的tab 的字体
      color: #50a0ff;
      //   color: #fff;
    }
  }
}
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值