Reset.css CSS Reset Public styles

Source: Internet
Author: User

@charset "Utf-8";
/*css document*/

/*!
* @ name:Reset.css
* @ Function: 1, reset browser default style
* 2, set general Atomic class
*/
/* Prevents users from customizing the effect of the background color on the Web page, adding lets users customize the font */
HTML {
Background:white;
Color:black;
}
/* The internal and external margins often make different browser styles behave differently */
BODY,DIV,DL,DT,DD,UL,OL,LI,H1,H2,H3,H4,H5,H6,PRE,CODE,FORM,FIELDSET,LEGEND,INPUT,TEXTAREA,P,BLOCKQUOTE,TH,TD, hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
margin:0;
padding:0;
}
/* Note that the form element does not inherit the parent font's problem */
Body,button,input,select,textarea {
FONT:12PX \5b8b\4f53,arial,sans-serif;
}
Input,select,textarea {
font-size:100%;
}
/* Remove the table cell margin and make its edge coincident */
Table {
Border-collapse:collapse;
border-spacing:0;
}
/* IE bug:th does not inherit text-align */
th {
Text-align:inherit;
}
/* Remove default Border */
fieldset,img {
Border:none;
}
/* IE6 7 8 (q) bug shown as in-line performance */
iframe {
Display:block;
}
/* Remove the border of this element under Firefox */
abbr,acronym {
Border:none;
Font-variant:normal;
}
/* Consistent del style */
del {
Text-decoration:line-through;
}
Address,caption,cite,code,dfn,em,th,var {
Font-style:normal;
font-weight:500;
}
/* Remove the identification before the list, Li will inherit */
Ol,ul {
List-style:none;
}
/* Alignment is the most important factor in typography, don't let anything be centered */
caption,th {
Text-align:left;
}
/* from Yahoo, so that the title is customized to adapt to multiple system applications */
H1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:500;
}
Q:before,q:after {
Content: ";
}
/* Uniform superscript and subscript */
Sub,sup {
font-size:75%;
line-height:0;
position:relative;
Vertical-align:baseline;
}
sup {
Top:-0.5em;
}
Sub {
Bottom:-0.25em;
}
/* Let the link show the underline in the hover state */
a:hover {
Text-decoration:underline;
}
/* The underline is not displayed by default, keeping the page concise */
Ins,a {
Text-decoration:none;
}
/* Remove IE6 & IE7 focus Point line */
A:focus,*:focus {
Outline:none;
}
/* Clear FLOAT */
. clearfix:after {
Content: "\200b";
Display:block;
height:0;
Clear:both;
}
. clearfix {
*zoom:1;
}/*ie/7/6*/
. Clear {
Clear:both;
Display:block;
font-size:0;
height:0;
line-height:0;
Overflow:hidden;
}
/* Set display and hide, usually used with JS */
. Hide {
Display:none;
}
. Block {
Display:block;
}
/* Set float to reduce the bug caused by floating */
. fl,.fr {
Display:inline;
}
. fl {
Float:left;
}
. fr {
Float:right;
}

Reset.css CSS Reset Public styles

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.