Document Flow Type : The elements in the document are displayed in an arranged display rule, and the HTML provides the layout of the 3 Chinese document flow type control elements.
- Normal flow: Elements in a document display rules by default.
- From top to bottom, from left to right
- Block-level element exclusive row
- Elements cannot overlap (cannot intersect)
- Floating flow: A set element arranges elements in a way that tilts and floats in one direction. Positioning
- From top to bottom, jianfengchazhen in the specified direction.
- Elements cannot overlap (cannot intersect)
- Positioning: Positions the element directly in the document or in the parent element, as if it floats above the specified element.
- Out of the document flow.
- Elements can overlap within an area and are displayed in an overlay, as shown by a limited number of levels.
Layout Properties : properties that govern how the elements are displayed in the document layout, can be divided into the following three categories according to function.
- controlling display class properties
Display: Sets the displayed type of the element, commonly used as follows.
None: Hides the object and does not occupy space.
Inline: Specifies that the object is an inline element.
Block: Specifies that the object is a block element.
Inline-block: Specifies that the object is an inline block element.
Visibility: Sets whether to display elements, commonly used values are as follows
Visible: Set object visual, but occupy space
Hidden: Setting Object shadowing
1 <styletype= "Text/css">2 Div{3 Border:2px Black Solid;4 width:300px;5 Height:400px;6 7 }8 #n{9 Display:None;Ten } One #h{ A Visibility:Visible; - } - </style> the </Head> - <Body> - <DivID= "n"></Div> - <DivID= "H"></Div> + </Body>
- controlling floating class properties
- control overflow Class Properties
CSS Layout Properties