上图:
项目: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;
}
}