Position:absolute without top/left/bottom/right values

后端 未结 4 1292
-上瘾入骨i
-上瘾入骨i 2020-12-16 05:57

I need to take an element out of the flow an am using position:absolute; for that.

Now if I just set position:absolute; without giving any

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 06:45

    I have done a test suite about "position: absolute;". ---> look at this

    In summary:

    the left edge of the containing block of an element set 'position: absolute' without top, right, bottom or left is probably the right margin edge of its previous inline box (ignoring white space)

    the top edge of the containing block of an element set 'position: absolute' without top, right, bottom or left is probably the top edge of the containing block of the line box in which the element lives

    But I cannot find any relevant specifications in w3.
    

提交回复
热议问题