el-input v-model=queryoid readonly el-input 怎么让文本内容居中
您可以使用CSS样式来实现文本内容居中。在el-input的外层元素上添加一个样式类,并设置该元素的text-align属性为center即可。
示例代码如下:
<el-input v-model="query.oid" readonly class="centered"></el-input>
.centered {
text-align: center;
}
这样设置之后,el-input中的文本内容就会居中显示了。
原文地址: https://www.cveoy.top/t/topic/iT2W 著作权归作者所有。请勿转载和采集!