Common browser compatibility issues

Source: Internet
Author: User

1. Different browser tags default external patches and internal patches are different

Problem: Different browser margin and padding differences are large.

Solution: CSS in *{margin:0;padding:0;}

2.ie6 Double-sided bug

Problem: When floating, the left and right margins may be twice times the written value

Solution: Add Display:inline in the label style control of float;

3. Height less than 10px is, in ie6,ie7 height may exceed oneself set height

Problem: IE6, 7 exceeds the height you set

WORKAROUND: Set the label to exceed the height Overflow:hidden

4. The image is spaced by default

Problem: When several IMG tags are put together, some browsers will have default spacing

Workaround: Use the Float property for the IMG layout

5. Label minimum height setting Min-height not compatible

Problem: Because Min-height itself is an incompatible CSS property, setting Min-height is not very well compatible with each browser

FIX: If we want to set a minimum height of 200px for a label, the setting required is: {min-height:200px; height:auto!important; height:200px; overflow:visible;}

Common browser compatibility issues

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.