Common CSS Compatibility

Source: Internet
Author: User

Common CSS Compatibility: 1, different browser label default padding value and margin value are different.

Solution: *{margin:0;padding:0} CSS Reset technology;

2, the Block property label floating, and the horizontal margin value, in the case of IE6 will produce horizontal

Double the margin value.

Solution: Add Display:inline to the floating object;

3, IE6 the label will have a default row height.

Settlement Bill: Add Overflow:hidden to label; Trigger BFC;

4, UL Li and ol Li, Li does not float and the parent label and no height, in the case of

IE6, 7, will be a few more pixels.

Solution: 1, Li do not set the width height 2, Li inside the label do not float

5. There will be voids between the adjacent IMG.

Solution: Add float to IMG. If the code is less than img , You can choose not to wrap or add comments between the IMG! !

6. A border appears when a nested IMG tag is set.

Solution: Add Border:none to IMG;

7, hack:* compatible IE6, ie7;_ compatible ie6;*+ compatible ie7;! Important compatible with except IE6

Other than the browser.

Common CSS Compatibility

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.