mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-24 00:01:56 +08:00
14 lines
608 B
CSS
14 lines
608 B
CSS
|
.mescroll-body {
|
||
|
position: relative; /* 下拉刷新区域相对自身定位 */
|
||
|
height: auto; /* 不可固定高度,否则overflow:hidden导致无法滑动; 同时使设置的最小高生效,实现列表不满屏仍可下拉*/
|
||
|
overflow: hidden; /* 遮住顶部下拉刷新区域 */
|
||
|
box-sizing: border-box; /* 避免设置padding出现双滚动条的问题 */
|
||
|
}
|
||
|
|
||
|
/* 适配 iPhoneX */
|
||
|
@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
|
||
|
.mescroll-safearea {
|
||
|
padding-bottom: constant(safe-area-inset-bottom);
|
||
|
padding-bottom: env(safe-area-inset-bottom);
|
||
|
}
|
||
|
}
|