设置el-input只显示下边框

187 阅读1分钟

1、设置el-input在一个div里面

<div class="inputDeep" >清单号码<el-input v-model="List.BillNo" ></el-input></div>

2、使用深度选择器

.inputDeep>>>.el-input__inner {
    width:200px  //宽度
    height: 30px;  //高度
    border-radius:0; // 去除圆角
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    border-color: black; //边框的颜色
}