On the problem of CSS viscous layout position:sticky

http://jsbin.com/razeyehama/e.

< hr >

1. Purpose: when the top of the green category scrolls to the red bottom, it will not follow the scroll.
2, question: not only is the structure written wrong or the CSS is mislocated, now use position:sticky (IOS and PC chrome) do not achieve the above purpose
3, ask the gods to help me analyze what the reason is, you can directly change the

in the link.
Mar.15,2021

is too high. Just make it shorter


because of the height of the classification, so it causes to follow the roll. Thank you, it has been solved

.
Menu