Reset default Style CSS reset 1th/2 page _ Experience Exchange

Source: Internet
Author: User
Tags reset
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
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.