Interview knowledge points, computer network interview knowledge points
1. Box Model
Standard CSS box model = content + padding + border + margin;
IE box model: content + margin (content already contains padding + margin );
2. In-row elements? Block-level elements? Empty element?
Line Elements: a, B, span, img, input, strong, select, label, em, button, textarea
Block-level elements: div, ul, li, dl, dt, dd, p, h1-h6, blockquote
Empty elements: br, meta, hr, link, input, img
3. How does CSS align vertically?
<Style>
. Item {
Position: absolute;
Top: 50%;
Left: 50%;
Matgin-top:-1/2 * heght; // the height of the top margin offset-1/2. The actual value prevails.
Margin-left:-1/2 * width; // width of the left margin offset-1/2, subject to the actual
}
</Style>
<Div> * html. test {color: #090;}/* For IE6 and earlier */
* + Html. test {color: # ff0;}/* For IE7 */attribute Hack. test {color: #090 \ 9;/* For IE8 + */* color: # f00;/* For IE7 and earlier */_ color: # ff0; /* For IE6 and earlier */}