CSS max-height: 100% and overflow-y: auto - Create Scrollable Containers
The CSS style 'max-height: 100%; overflow-y: auto' sets the maximum height of an element to 100% of its parent container's height and enables vertical scrolling when the content inside the element exceeds its height.
This style is commonly used to create a scrollable container when the content inside it is larger than the available space.
原文地址: https://www.cveoy.top/t/topic/pls9 著作权归作者所有。请勿转载和采集!