1.div is a block-level element, and span is an inline element, both of which have no meaning and are served for the style; The block-level element div can set the width wide property, such as width:300px, but the inline element span cannot set the width
<span> block level elements, can be done through the style attribute Display:block, then after the completion of the grab, the inline will be more lines, it becomes a block-level element, and can be set width;
Similarly, a DIV can be converted to an inline element, and the div is converted into an inline element by setting the style attribute Display:inline
2.z-index style properties, set some blocks to float on the other blocks
3. Positioning method:
4. Layout-related properties; float float and clear float, float left right (clear float) clear:both
Before the code is cleared:
The effect is: bottom red, covered by left and right two floating div
If the div where the bottom is located clears the float, you only need to set the Style property in bottom Clear:both
The effect is as follows:
Bottom ran down here.
margin:0 Auto for 5.div style properties;
6. Front-end multi-version testing tool software: Ietest Multibrowser
7. How to determine the browser version used by the current user to browse the Web page:
<!--[if expression]> HTML <! [endif]-->
Example:
<!--[if IE 5]>
<p>welcome to Internet Explorer 5.</p>
<! [endif]-->
[If IE] Determine if IE
[If IE 7] Judging whether it's IE7
[If! IE] to determine whether it is not ie
[If Lt IE 5.5] Determine if the following versions are IE5.5. (<)
[If LTE IE 6] Determine if it is equal to the IE6 version or the following (<=)
[If GT IE 5] Determine if IE5 above version (>)
[If GTE IE 7] Determine if IE7 version or above
[If! (IE 7)] Judging if it's not IE7
[If (GT IE 5) & (LT IE 7)] Determine if it is greater than IE5, less than IE7
[If (IE 6) | (IE 7)] Judging whether IE6 or IE7
HTML Learning Notes