Problems with the abbreviation for CSS for IE and Firefox

Source: Internet
Author: User
ie for CSS magin padding, such as default value of 0px, but FF is not the same, in order to maintain the appearance of uniformity, even if the padding is 0 you have to write, lest FF in the browsing of the dislocation

First
Support for CSS abbreviations: both IE and FF have a bit of a problem with the abbreviations for CSS
For example: BORDER:0XP solid #fff;
Two browser support is not a problem
But if the four side of the magin under different circumstances, it can not use this abbreviation, whether it is IE or FF will appear boundary interpretation error, and resulting in page deformation
Correct abbreviation:
border-width:0px 1px 2px 3px;
Border-style:solid;
Border-color: #fff;
Second
is IE for CSS magin padding, such as the default value of 0px, but FF is not the same, in order to maintain the appearance of uniformity, even if the padding for 0 you also want to write, so as to avoid FF in the browse dislocation.
Third
In IE with body {text-align:center;} You can center the alignment. Firefox is always on the left. But if you add float:right, you can go to the right and you can't get to the middle. FF set the container's left and right outside the patch for auto on it, such as: margin:0 auto;



Related Article

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.