There are four types of position positioning:
1 static default, no positioning, elements appear normally in the document flow.
2 Fixed absolute positioning
The position of the element relative to the browser window is a fixed position.
Even if the window is scrolled, it will not move: position out of the document stream without occupying a position.
3 relative relative positioning, relative to its normal position, also in the document flow, occupy position.
Relative positioning elements are often used as container blocks for absolutely positioned elements.
4 Absolute Absolute Positioning
The position of an absolutely positioned element is relative to the nearest positioned parent element, if the element has no positioned parent element, then its position is relative to the
Positioning out of the document stream, not occupying space, can overlap on top of other elements.
Examples of work: frames dragged out of the screen
Work, it is possible to encounter the frame dragged out of the screen, it may be that the frame positioning is not fixed. Change the positioning to fixed to make it relative to the browser location.
Position positioning to solve the situation when the frame is dragged out of the screen