overflow-y scroll always show even it not overflow

前端 未结 2 1944
一整个雨季
一整个雨季 2021-02-13 11:01

I\'m doing \"Scroll JQuery Mobile Panel Separately From Content\" ,what I have done

I apply this css to Achieve what I do but the problem is

overflow-y : scroll

相关标签:
2条回答
  • 2021-02-13 11:07

    Try using overflow: auto instead. That will only show scrollbars when the content overflows the normal height, whereas overflow: scroll will show them all the time.

    0 讨论(0)
  • 2021-02-13 11:28

    overflow-y : scroll always display scroll bars, use auto instead.

    .fixed-panel {
      min-height: 280px;
      max-height: 280px;
      overflow-y: auto;
    }
    
    0 讨论(0)
提交回复
热议问题