position: sticky 吸顶 / 吸底 / 同时写 top + bottom

1. 只吸顶
上方内容
我是 sticky-top position: sticky; top: 0;
下方内容
2. 只吸底
上方内容
我是 sticky-bottom position: sticky; bottom: 0;
下方内容
3. 同时写 top + bottom
上方内容
我同时写了 top 和 bottom position: sticky; top: 0; bottom: 0;
下方内容