element ui 按钮居中
时间: 2023-10-11 12:11:51 浏览: 153
在Element UI中实现按钮居中有多种方法。其中一种方法是在按钮的外面包裹一个div,并使用CSS属性text-align:center来实现按钮居中。代码如下:
```
<div style="text-align:center">
<el-button>确认</el-button>
</div>
```
这样,按钮就会在屏幕中水平居中显示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue 实现element-ui中的加载中状态](https://download.csdn.net/download/weixin_38690407/14667140)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [element plus组件居中显示](https://blog.csdn.net/qq_39691077/article/details/125453002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文