CSS Reset (Reset) method of finishing 1th/3 page _ Experience Exchange

Source: Internet
Author: User
Believe that after reading the full text you will have a new understanding of CSS Reset
Ps:
Copy Code code as follows:

* {
padding:0;
margin:0;
}

This is the most commonly used CSS Reset, but there will be a lot of problems.

The original part said a lot about CSS, and the different browser CSS rules, and the development of "CSS Reset" is also in order to be compatible and unified, the correct and effective use of "CSS reset" can in a way to save time and money.

Thank you very much. Perishable and induction

The following is a few types of CSS reset simple introduction, I have limited capacity. Can only understand the general meaning, but also please you reader forgive me.

Minimalistic Reset [Version 1]
Believe this section you often see. And that's what we use a lot.
Copy Code code as follows:

* {
padding:0;
margin:0;
}

Minimalistic Reset [Version 2]
Border:0 's design is a little dodgy.
Copy Code code as follows:

* {
padding:0;
margin:0;
border:0;
}

Minimalistic Reset [Version 3]
Of course, this is not recommended. Will conflict with some default styles
Copy Code code as follows:

* {
outline:0;
padding:0;
margin:0;
border:0;
}

Condensed Universal Reset
This is the author's current comparison of the meaning of a writing. The uniformity of the relative universal browser style is ensured.
Copy Code code as follows:

* {
Vertical-align:baselinebaseline;
Font-weight:inherit;
Font-family:inherit;
Font-style:inherit;
font-size:100%;
border:0 none;
outline:0;
padding:0;
margin:0;
}

Current 1/3 page 123 Next read the full text
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.