这段代码使用了Vue的深度选择器:deep()来确保样式能够穿透scoped样式的作用域,并应用到el-select组件内部的.el-input__inner元素上,从而去掉边框。 另外,如果你还需要去掉el-select在选中或聚焦时的蓝色边框,你可以添加以下样式: css <style scoped> :deep(.el-select .el-input__inner) { border: non...
去掉el-select的边框 el-select{width:95px;display:inline-block;input{font-size:12px;border:none;background:none;text-align:center;color:$color;font-weight:bold;}.el-input__suffix{i{color:$color;margin-left:0.06rem;font-weight:bold;}}/* WebKit browsers */::-webkit-input-placeholder{color:...