Floating, position positioning css layout

float:

left: the right text flow object

right: left text flow object

div having a wrap effect

 

position:

absolute: an object is dragged from the document stream, i.e. blown layer, the top laminate is formed, does not account for the location; may be left, top, right, bottom positioning

relative: the object is dragged from the document does not flow, i.e., does not form a laminated, still in the normal flow of the document; may be left, top, right, bottom positioning

Guess you like

Origin www.cnblogs.com/code-fun/p/11740726.html