Three kinds of CSS global reset scheme

Source: Internet
Author: User

Programme I

HTML, body, Div, Span,applet, object, IFRAME, table, caption,
Tbody, TFOOT, THEAD, Tr,th, TD, Del, DFN, EM, Font, IMG, INS,
KBD, Q, S, Samp, Small,strike, strong, Sub, SUP, TT, VAR,
H1, H2, H3, H4, H5, H6,p, blockquote, Pre, A, abbr,
Acronym, address, Big,cite, code, DL, DT, DD, OL, UL, Li,
FieldSet, form, label,legend {
Vertical-align:baselinebaseline;
Font-family:inherit;
Font-weight:inherit;
Font-style:inherit;
font-size:100%;
outline:0;
padding:0;
margin:0;
border:0;
}

: Focus {
outline:0;
}

Body {
Background:white;
Line-height:1;
Color:black;
}

OL, UL {
List-style:none;
}

Table {
Border-collapse:separate;
border-spacing:0;
}

caption, Th, TD {
Font-weight:normal;
Text-align:left;
}

Blockquote:before,blockquote:after, Q:before, Q:after {
Content: "";
}

BLOCKQUOTE, Q {
Quotes: "" ";
}

Scenario Two: Yahoo's (YUI) CSS Reset

Body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,
form,fieldset,input,textarea,p,blockquote,th,td{
padding:0;
margin:0;
}

Table {
Border-collapse:collapse;
border-spacing:0;
}

fieldset,img {
border:0;
}

address,caption,cite,code,dfn,em,strong,th,var{
Font-weight:normal;
Font-style:normal;
}

Ol,ul {
List-style:none;
}

caption,th {
Text-align:left;
}

H1,h2,h3,h4,h5,h6 {
Font-weight:normal;
font-size:100%;
}

Q:before,q:after {
Content: ";
}

abbr,acronym {
border:0;
}


Programme III
HTML, body, Div, span, applet, object, IFRAME, H1, H2, H3, H4, H5, H6, p, blockquote, Pre, A, ABBR, acronym, address, Big, cite, code
, Del, DFN, EM, img, INS, KBD, Q, S, Samp, small, strike, strong, sub, SUP, TT, VAR, b, U, I, center, DL, DT, DD, OL, UL, Li, FieldSet, form, label, legend, table, Caption, Tbody, TFOOT, THEAD, tr, TH, TD, Article, aside, canvas, details, embed , figure, Figcaption, footer, Header, Hgroup, menu, nav, output, ruby, section, Summary, time, mark, audio, video{

margin:0;

padding:0;

border:0;

font-size:100%;

Font:inherit;

Vertical-align:baseline;

Outline:none;

}
html{

height:101%;/* Always show scroll bars */

}
body{

font-size:62.5%;

Line-height:1;

Font-family:arial, Tahoma, Verdana, Sans-serif;

}
Article, aside, details, figcaption, figure, Footer, Header, Hgroup, menu, NAV, section{

Display:block;

}
img{

border:0;

max-width:100%;

}
a{

Text-decoration:none;

}
a:hover{

Text-decoration:underline;

}
OL, ul{

List-style:none;

}
BLOCKQUOTE, q{

Quotes:none;

}
Blockquote:before, Blockquote:after, Q:before, q:after{

Content: "";

Content:none;

}
strong{

Font-weight:bold;

}
input{

Outline:none;

}
table{

Border-collapse:collapse;

border-spacing:0;

}

Three kinds of CSS global reset scheme

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.