element-select

Drop-down box operation

Size Width

Provided in the official website of the size selection box: [ size] , it can control the overall size of which values are

  • medium
  • small
  • mini

But for a more flexible height and width, it needs to set its own, the following two methods

1. style superlative select Settings

<el-select size="small" style="width: 150px;">
</el-select>

2. SCSS's / deep \ penetrate selector

 /deep/ .el-select{
      width: 150px;
  }
Published 65 original articles · won praise 0 · Views 2092

Guess you like

Origin blog.csdn.net/Q10CAU/article/details/104660071