1.给父元素限制宽高

2.给Scroll限制高度,并overflow:hidden;

1   <div class="rank">
2        <scroll class="top-list">
 1  .top-list{
 2     height: 100%;
 3     width: 100%;
 4     overflow:hidden;
 5   }
 6   .rank{
 7     position: fixed;
 8     width: 100%;
 9     top: 88px;
10     bottom: 0;
11   }

 

相关文章:

  • 2021-06-06
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-10-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-05-10
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案