在使用 el-input
组件时,可以通过设置 style
或 class
属性来指定其宽度。
- 使用 style 属性设置宽度:
<el-input placeholder="请输入内容" style="width: 200px;"></el-input>
在使用 el-input
组件时,可以通过设置 style
或 class
属性来指定其宽度。
<el-input placeholder="请输入内容" style="width: 200px;"></el-input>