首页 > 其他分享 >EL-DRAWER 父容器设置

EL-DRAWER 父容器设置

时间:2023-02-10 11:13:18浏览次数:39  
标签:容器 style EL DRAWER drawer 设置 el

element-ui的官网中,关于el-drawer的例子都是在body中打开,我的项目需求中,需要在某个DIV中打开。参考了网上的例子,实现了此功能,记录一下

父容器的div中,设置:

style="position: relative;overflow: hidden;"

el-drawer 一定要在父容器的Div里面,设置如下:

style="position:absolute"
z-index="-1"

标签:容器,style,EL,DRAWER,drawer,设置,el
From: https://www.cnblogs.com/coderz1/p/17108231.html

相关文章