el-input 指定宽度

在使用 el-input 组件时,可以通过设置 styleclass 属性来指定其宽度。

  1. 使用 style 属性设置宽度:
<el-input placeholder="请输入内容" style="width: 200px;"></el-input>

猜你喜欢

转载自blog.csdn.net/weixin_42602241/article/details/129612917