el-button设置大小
时间: 2023-10-18 16:26:36 浏览: 346
要设置el-button的大小,你可以通过修改字体大小和内边距(padding)来实现。可以使用size属性为按钮设置大小,比如设置为"mini"可以使按钮变小。此外,你还可以通过自定义CSS样式来修改按钮的大小。通过设置按钮的边框和颜色,也可以实现大小的调整。例如,你可以通过设置.el-button--info, .el-button--default, .el-button--cyan, .el-button--primary, .el-button--success, .el-button--warning, .el-button--danger的border和color属性来调整按钮的大小。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [给elementUI中el-button加宽高背景颜色,大小设置,去掉默认颜色边框,园角度](https://blog.csdn.net/m0_49714202/article/details/122742558)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [element-UI样式修改button篇](https://blog.csdn.net/lhttq/article/details/108363045)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文