Fixed 与 Sticky 的真实应用 | CSS
本章覆盖:fixed 相对 viewport / containing block 的边界;sticky;scroll container;sticky threshold;`top`;sticky 为什么“不生效”;fixed header;sticky sidebar;移动端 viewport 与 fixed 元素的注意事项;sticky 与 overflow ancestor 的关系。
本章知识点
- fixed 相对 viewport / containing block 的边界
- sticky
- scroll container
- sticky threshold
top- sticky 为什么“不生效”
- fixed header
- sticky sidebar
- 移动端 viewport 与 fixed 元素的注意事项
- sticky 与 overflow ancestor 的关系