Detailed explanation of css position positioning
Others
2022-04-22 11:35:32
views: 0
position
- static default
- relative positioning, keep the position, offset top, left, bottom, right relative to the original position
- The position is absolutely positioned, does not occupy the position, relative to the previous top, left, bottom, right whose position is not static
- fixed view positioning, relative to the browser's positioning, not moving
- sticky sticky positioning, first relative, top, left, right, bottom, exceeding the threshold fixed (less compatibility)
Origin http://43.154.161.224:23101/article/api/json?id=324991846&siteId=291194637