CSS the next day:
CSS padding property :p Adding
Padding: A number that means four directions are the same (upper right bottom left)
Padding-top,padding-right,padding-bottom,padding-left
Padding: two digits
padding:10px 20px;
refers to the upper and lower 10px, about 20px
Note: There are spaces between the two digits.
Padding three digits
padding:10px 20px 30px;
refers to the 10px, the following fill is 30px, about 20px;
Padding: four digits
such as:padding:10px 20px 30px 40px;
In a clockwise direction. ( upper right lower left )
padding:0 10px;
padding:0;
CSS margin Properties : Margin
Margin: A number that refers to the same four directions (upper right Bottom left)
Margin-top,margin-right,margin-bottom,margin-left
margin: two digits
margin:10px 20px;
refers to the upper and lower margins of 10px, about 20px
Note: There are spaces between the two digits.
Margin three digits
margin:10px 20px 30px;
refers to the upper margin 10px, 30px, left and right margin for 20px;
margin: four digits
such as:padding:10px 20px 30px 40px;
In a clockwise direction. ( margin, upper right lower left )
margin:0 10px;
margin:0;
CSS Background background
Background-color background color , english word or hexadecimal color can be.
Background-image:url ( picture path ) background map
Background-repeat (no-repeat not duplicated,repeat-x,repeat-y) Repeat
Background-position (left,center top bottom right) background map positioning
CSS Wizard:
Is the background map positioning.
Put many small plots on a large map.
Background-attachment (attachment mode) fixed
. Box{background: #ccc URL ( path to Picture ) no-repeat Locating coordinates fixed}
on the back of the image fixed, IE6 only body Support
CSS Floating and purging
The floating element can be understood as the element has been detached from the document flow. "no longer exists."
floating in only two directions:left,right
Float:left ( left float ), Float:right(right float);
Floating position: Floats to the bounds of the containing element. Or an edge with a floating property element.
The level of the floating element is higher than the normal element.
All floating elements are block elements.
If the element is floating forward, it is automatically converted to a block element after floating.
Note: The inline element is not wide, only the block element has a wide height.
As for floating, we can usually use it to display the block element in one line.
primarily applied to sorting ( Div+css)
Always set the float after this, be sure to have clear float.
The main purpose is to clear the effect of the above floating attribute on the subsequent element.
(The floating property above, if not cleared, inherits the following element by default.) )
Clear floating notation:clear:left,right,both
. Clear:both, Clear both sides, we usually use in the copyright exclusive line.
Clear Write Location: The last face with floating properties.
usually, with an empty <div class= "clear" ></div>
Overflow Property hidden scroll auto
Case: News module in depth
Case: PHP Classes Information
CSS introduces the way inline, inline, external
CSS Precedence
CSS Inheritance
Display Property block inline Inline-block None
case . Joke navigation
Positioning properties:position:static Fixed relative absolute
position coordinates:left top right Bottom
CSS Properties Explained