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

CodePudding user response:

refer to the second floor Stephen_112 response:
where it is not the style, which is the original starting point


Thank you very much, who will give it to determine its original starting point?

CodePudding user response:

leaf MAO response: 1/f, reference
absolute generated absolutely positioned elements, relative to the static positioning beyond 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


Thank you very much, could you please tell me, who will give it to determine its original starting point?

CodePudding user response:

leaf MAO response: 1/f, reference
absolute generated absolutely positioned elements, relative to the static positioning beyond 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


Thank you very much, there is a problem, each element in the flow, how to determine their own position, is that in turn to the right line, if it is in turn to the right, believe that the two elements of the interval between two adjacent edges is 0 px or has a default such as 10 px?

CodePudding user response:

Adjacent interval is different labels have default distance is usually to initialization of the
you can check the datahttp://www.mamicode.com/info-detail-1906300.html
  • Related