Article From:https://segmentfault.com/q/1010000011136668
Question:

Like WeChat session list, it does not take up the position of other elements.

  1. Can it be realized only with CSS?

  2. If not, what should be done?

Answer 0:

You mean the vertical scroll bar, and the scroll bar comes according to the screen size, the output height is larger than the screen, the scroll bar comes out.

Answer 1:

The good layout is OK, CSS can be realized

Answer 2:
overflow:hidden

Answer 3:

Fixed height, and then overflow-y:scroll

Answer 4:

Define the scroll bar

Answer 5:

The key is not to occupy the location of other elements, so you can only use plug-ins, such as this.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *