设置el-dialog 的最高
时间: 2023-10-05 08:06:51 浏览: 95
根据引用中提供的代码和说明,可以看出要设置el-dialog的最高高度为100vh。在代码中通过添加max-height: 100vh !important;来实现这一效果。这样设置后,el-dialog的高度将不会超过浏览器窗口的可视高度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [element ui 对话框el-dialog关闭事件详解](https://download.csdn.net/download/weixin_38660108/12763272)[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: 33.333333333333336%"]
- *2* [element-plus:el-Dialog对话框组件垂直居中、禁止屏幕滚动、使用内滚动](https://blog.csdn.net/m0_58050016/article/details/128114632)[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: 33.333333333333336%"]
- *3* [el-dialog层级不够高以及遮罩在内容框下面的问题](https://blog.csdn.net/Zxiuping/article/details/117153034)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文