#overflow-y

Defines how overflowing content on the vertical axis is displayed.

默认属性 overflow-y: visible;

The overflowing content is visible, while the element itself stays at the specified height.

overflow-y: hidden;

The overflowing content is hidden and can not be accessed.

overflow-y: scroll;

The overflowing content is accessible thanks to a vertical scrollbar.

overflow-y: auto;

The browser decides whether to display a vertical scrollbar or not.