Home > front end > Position: relative to the corresponding element relative to its original starting point to be mobile
Position: relative to the corresponding element relative to its original starting point to be mobile
Time:02-23
Position: relative explanation of to the corresponding element relative to its original starting point for mobile , how to determine the original starting point, please
CodePudding user response:
Absolute generated absolutely positioned elements, relative to the static positioning outside the first parent element position, the position of the element by "left", "top", "right" and "bottom" attributes,
Generated absolutely positioned elements, fixed position relative to the browser window and the position of the element by "left", "top", "right" and "bottom" attributes,
Relative to generate the relative positioning of elements, relative to its normal position to locate, therefore, left: "20" will add 20 pixels to the left position of the element,
Static default value, there is no orientation, elements appear in the normal flow (top, bottom, left, right, or z - index statement),
You can view https://www.w3school.com.cn/cssref/pr_class_position.asp
When we use the normal position: relative to its child elements add absolute position, or in general can't write relative
CodePudding user response:
Is not the time of this style where it is, which is the original starting point