el-select改变背景颜色

一。实现如下效果图

 

 

二。代码如下

/deep/ .el-input.el-input--suffix {
  // 2.修改背景颜色、字体颜色、边框、宽高
  .el-input__inner {
    background: #4C78FF !important;
    border: 1px solid #4C78FF;
    color: #fff;
    height: 30px;
    width: 140px;
  }

  // 符号的位置会错乱,进行修正(水平)
  .el-input__suffix-inner {
    position: absolute;
    left: -25px;
  }

  // 符号的位置会错乱,进行修正(垂直)
  .el-select__caret.el-input__icon.el-icon-arrow-up {
    line-height: 30px;
  }

  .el-input__inner::placeholder {
    color: #fff;
  }

  .el-icon-arrow-up:before {
    color: #fff;
  }
}

 

posted @ 2022-12-23 10:31  IT小姐姐  阅读(1466)  评论(0编辑  收藏  举报