參考: element ui的z-index問題 - SegmentFault 思否
我的情況:
使用elementUI的el-drawer組件,打開時發現偶爾會出現el-drawer被遮蓋的問題
原因:
el-drawer每打開一次,其z-index會+1,目的是為了保證浮層在最上面
解決方法:
使用!important
.drawer { z-index: 2999 !important; // 大於el-drawer的2000,但小於最大值9999 }
參考: element ui的z-index問題 - SegmentFault 思否
我的情況:
使用elementUI的el-drawer組件,打開時發現偶爾會出現el-drawer被遮蓋的問題
原因:
el-drawer每打開一次,其z-index會+1,目的是為了保證浮層在最上面
解決方法:
使用!important
.drawer { z-index: 2999 !important; // 大於el-drawer的2000,但小於最大值9999 }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。