Htmlcss notes -- reset css reset (2), htmlcsscss
1. inline, embedded, line element:
By default, labels of the same type can be displayed;
The width of the content is extended. how wide the content is, and how wide the content is;
Span, embedded label supports width and height, even if the width and height are added,
It does not support both the top and bottom margins, but the left and right margins. The top and bottom margins will affect the background color (but will not support the distance, and will not squeeze other later elements down, but the background is displayed)
Line feed of embedded code will be parsed into spaces, and the block level will not.
Block-level elements:
By default, only one row is displayed;
When there is no width, a row is full by default. How wide is the parent class? How wide is it,
2. display: block; displayed as a block;
Display: inline; embedded
After changing basic creden, the feature will be the same as that of block-level/inline.
3. Image img: Neither inline nor block level,
Can be displayed side by side; supports width and height;
Inline-bolck;
Ie6 and ie7 do not support inline-block of attribute labels;