Article From:

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:

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.

Leave a Reply

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