1, Display:inline-block; the egg set for this property:
The main use of Nline-block is to handle the high-width problem of non-replacement elements in the row!
Inline non-replacement elements, such as span, a , and so on, the normal corporal can not set the width of the high, plus this property, you can trigger to make such labels behave as block-level elements , you can set the width of the height.
Note IE6 does not support Inline-block properties, can be resolved with hack: *display:inline;zoom:1;
2, border:1px solid #aaaaaa, eggs by:
is to add a border to our block-level elements, the line of the border is a solid line, the color of the border is #aaaaaa.
3, Vertical-align:middle
The Vertical-align property sets the vertical alignment of the element.
| value |
Description |
| Baseline |
Default. element is placed on the baseline of the parent element. |
| Sub |
Subscript for vertical alignment of the aligned right. |
| Super |
Superscript of vertical aligned aligned |
| Top |
Aligns the top of the element with the top of the highest element in the row |
| Text-top |
Aligns the top of the element with the top of the parent element 's font |
| Middle |
Place this element in the middle of the parent element . |
| Bottom |
Aligns the top of the element to the top of the lowest element in the row. |
| Text-bottom |
Aligns the bottom of the element with the bottom of the parent element's font . |
| Length |
|
| % |
Use the percent value of the "Line-height" property to arrange this element. Negative values are allowed. |
| Inherit |
Specifies that the value of the Vertical-align property should be inherited from the parent element . |
Learning notes for CSS