Before learning is to put the knowledge points in the book, now re-review carding, the knowledge points to do a summary:
1. block elements : flow from top to bottom (there is a newline between each element);
Inline Elements : The horizontal direction is next to each other, the overall flow from the upper left to the lower right;
2, for the image , usually not only set the margin, but also set the padding and border;
3, if you want to float (float) an element, you must set a width for this element, the floating element will be removed from the normal flow, floating to the left or right;
4. Centering Technique:
- Margin:auto; The browser expands the content area as needed, and ensures that the left and right margins are the same, so the content is centered;
- top:50%; left:50%; Webkit-transperent:translate (-50%);
5. Location of position
- absolute: The first thing the browser does is to completely remove it from the stream, and then the browser places the element in the position specified by the top and right properties. (You can also use bottom and left to specify the location);
- fixed: The browser will delete it from the normal stream;
- relative: will let the element normal flow into the page;
You can specify an absolute position on any element, including block elements and inner-connected elements;
6. Animate Animate
Animate (Params,[duration],[easing],[callback]) (The following three parameters are optional)
- Params:options, a set of style properties and their values that are included as animated and final values;
- Duration: A string of three booking speeds ("slow", "normal", "fast") or a millisecond value that represents the duration of the animation (for example: 1000);
- Easing: The name of the erase effect to use (requires plug-in support), and the default jquery provides "linear" and "swing";
- Callback:function, the function that executes when the animation is completed;
CSS Learning Summary (1)