el-dialog 设置最小宽度
时间: 2023-10-05 10:05:51 浏览: 91
el-dialog设置最小宽度可以通过设置min-width属性来实现。在引用[3]中提到,el-dialog有默认的min-width属性为50%。为了避免被默认样式覆盖,可以给新加的自定义类加上!important来提升优先级。同时,还需要注意加上min-width属性,以确保设置的最小宽度生效。一个示例的CSS样式可以是:width: 30% !important; min-width: 100px !important; <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [jQuery实现的Dialog(支持模态和拖动)](https://download.csdn.net/download/lgg201/2138962)[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之改变el-dialog的宽度的坑(本地样式在线上不生效)](https://blog.csdn.net/weixin_45907770/article/details/115087923)[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 ]
阅读全文