Open SevenOutman opened 4 years ago
设置了 CSS position: sticky 的元素,在页面滚动的过程中,当其触到父容器的底部时,会随着父容器滚出屏幕而被推出屏幕,并非直接消失。
position: sticky
CodeSandbox
设置了 CSS
position: sticky
的元素,在页面滚动的过程中,当其触到父容器的底部时,会随着父容器滚出屏幕而被推出屏幕,并非直接消失。CodeSandbox