As I mentioned in the default style in HTML, some tag elements have a default attribute value under HTML, and we need to reset the default style (CSS reset) in order to avoid having to redefine them in the CSS when we're writing CSS pages. Each person's usage and writing are different. Find an article on the CSS Reset survey, you can see the foreign use of CSS reset proportional survey.
Here is a summary of CSS reset more comprehensive article, enumerated a variety of CSS reset writing, you can see.
Translation Address view
Original Address View
Next I also looked at the domestic two websites, with Firebug press F12 to see their CSS reset how to write?
Taobao (www.taobao.com):
HTML {
Overflow-x:auto;
Overflow-y:scroll;
}
Body, DL, DT, DD, UL, OL, Li, Pre, form, fieldset, input, p, blockquote, TH, TD {
font-weight:400;
margin:0;
padding:0;
}
H1, H2, H3, H4, H4, H5 {
margin:0;
padding:0;
}
Body {
Background-color: #FFFFFF;
Color: #666666;
Font-family:helvetica,arial,sans-serif;
font-size:12px;
padding:0 10px;
Text-align:left;
}
Select {
font-size:12px;
}
Table {
Border-collapse:collapse;
}
FieldSet, img {
border:0 none;
}
fieldset {
margin:0;
padding:0;
}
FieldSet p {
margin:0;
padding:0 0 0 8px;
}
Legend {
Display:none;
}
Address, caption, EM, strong, Th, I {
Font-style:normal;
font-weight:400;
}
Table Caption {
margin-left:-1px;
}
HR {
border-bottom:1px solid #FFFFFF;
border-top:1px solid #E4E4E4;
BORDER-WIDTH:1PX 0;
Clear:both;
height:2px;
margin:5px 0;
Overflow:hidden;
}
OL, UL {
List-style-image:none;
List-style-position:outside;
List-style-type:none;
}
caption, Th {
Text-align:left;
}
Q:before, Q:after, Blockquote:before, Blockquote:after {
Content: "";
}
Current 1/2 page
12 Next read the full text