HTML Learning Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.