Element UI el-input 组件宽度调整方法
可以通过设置 el-input 的 width 样式属性来改变宽度,例如:
<el-input placeholder='请输入内容' style='width: 200px;'></el-input>
也可以通过在 el-input 上绑定一个 class 来设置宽度:
<el-input placeholder='请输入内容' class='my-input'></el-input>
<style>
.my-input {
width: 200px;
}
</style>
原文地址: https://www.cveoy.top/t/topic/m5XD 著作权归作者所有。请勿转载和采集!