el-select,el-input__inner,el-input__suffix样式修改

上图:
在这里插入图片描述
项目:vue + element
问题:element虽好,但是样式修改起来是真的费劲。
总结:el-select的宽度是默认充满容器的所以只需要设置高度即可

css样式:

//对整个容器进行设置
  .el-select /deep/ .el-input__inner {
    
    
    height: 44px;
    border: none;
    margin-top: 24.5px;
    font-size: 18px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #2e5afb;
  }
  //对小标的设置和样式自定义
  .el-select /deep/ .el-input__suffix {
    
    
    top: 11px;
    .el-select__caret {
    
    
      font-size: 24px;
      color: #333333;
    }
  }

猜你喜欢

转载自blog.csdn.net/weixin_43131046/article/details/114674938