Tags
1 page
吸顶
position: sticky 实战:吸顶与滚动吸附
`sticky` 让元素在跨越阈值前像 relative,越过后像 fixed 吸在视口。导航栏、表头吸顶、悬浮按钮都可