专题文章
时长:00:00更新时间:2020-11-27 18:48:47
问题描述。移动端当有 fixed 遮罩背景和弹出层时,在屏幕上滑动能够滑动背景下面的内容,这就是著名的滚动穿透问题。示例demo。样式。<;style>;.box{width: 100%;height: 100%;position: relative;}.dialog{width: 100%;height: 100%;position: fixed;left: 0;top: 0;background: rgba(0,0,0,0.4);}.dia-con {width: 40vw;height: 38vw;background: white;margin: 30vh auto;}<;/style>;。结构。
查看详情