Difference between position:sticky and position:fixed?
问题 The documentation was pretty hard to understand since I am new to CSS. So can anyone please explain the actual difference between position:sticky and position:fixed ? I would also appreciate an example. I have gone through https://developer.mozilla.org/en-US/docs/Web/CSS/position and a few other articles, but I still don't get it. 回答1: position: fixed always fixates an element to some position within its scrolling container or the viewport. No matter how you scroll its container, it will