the traditional position: fixed;
is relative to the window, and there are two main points of the problem
- relative to the specified parent element
- fixed positioning
encountered the following problems in mobile development. The green box is the H5 navigation header, the blue box is the tab switch, and the red box is a long list display. Both the green box and the blue box need to be fixed, so how to make the blue box element fixed relative to the red box element? (of course, it is easy to think of changing the top
value of the blue box, but I don"t think it is good. I hope to achieve the fixed positioning of the enhanced version.)