mescroll-body.css 894 B

1234567891011121314151617181920212223
  1. .mescroll-body {
  2. position: relative; /* 下拉刷新区域相对自身定位 */
  3. height: auto; /* 不可固定高度,否则overflow:hidden导致无法滑动; 同时使设置的最小高生效,实现列表不满屏仍可下拉*/
  4. overflow: hidden; /* 当有元素写在mescroll-body标签前面时,可遮住下拉刷新区域 */
  5. box-sizing: border-box; /* 避免设置padding出现双滚动条的问题 */
  6. }
  7. .mescroll-body .downwarp-content {
  8. display: flex;
  9. justify-content: center;
  10. align-items: center;
  11. }
  12. /* 使sticky生效: 父元素不能overflow:hidden或者overflow:auto属性 */
  13. .mescroll-body.mescorll-sticky{
  14. overflow: unset !important
  15. }
  16. /* 适配 iPhoneX */
  17. @supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
  18. .mescroll-safearea {
  19. padding-bottom: constant(safe-area-inset-bottom);
  20. padding-bottom: env(safe-area-inset-bottom);
  21. }
  22. }