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