Clear CSS Default style code

Source: Internet
Author: User

/** clear Inner margin **/

Body

H1,

H2,

H3,

H4,

H5,

H6,

hr

P

Blockquote

/* Structural ELEMENTS structural elements */

Dl

Dt

Dd

Ul

Ol

Li

/* List elements elements */

Pre

/* Text formatting elements literal format element */

Form

FieldSet,

Legend

button

Input

TextArea

/* Form Elements TABLE element */

Th

Td

/* Table elements elements */

{

margin:0;

padding:0;

Font-family: "Microsoft Jas Black";

}

/** Setting the default font **/

Body

button

Input

Select

TextArea

/* for IE */

{

font:14px/1.5 Tahoma,/5b8b/4f53, Sans-serif;

}

H1,

H2,

H3,

H4,

H5,

h6 {

font-size:100%;

Font-weight:normal;

}

Address

Cite

Dfn

Em

var {

Font-style:normal;

}

/* The italic is righting */

Code

Kbd

Pre

Samp {

Font-family:courier New, Courier, Monospace;

}

/* Uniform width font */

Small {

font-size:12px;

}

/* Less than 12px Chinese hard to read, let small normalize */

/** Reset List Element **/

Ul

OL {

List-style:none;

}

/** resetting text formatting elements **/

A

Text-decoration:none;

}

a:hover {

Text-decoration:none;

}

sup {

Vertical-align:text-top;

}

/* Reset to reduce the impact on the row height */

Sub {

Vertical-align:text-bottom;

}

/** resetting the table cell element **/

Legend {

Color: #000;

}

/* for IE6 */

FieldSet,

IMG {

border:0;

}

/* IMG HITCH: Let the img in the link have no border */

button

Input

Select

TEXTAREA {

font-size:100%;

}

/* Causes the form element to inherit the font size under IE */

*/* Note: Optgroup cannot be righting */

/** Reset TABLE Element **/

Table {

Border-collapse:collapse;

border-spacing:0;

}

/* Reset HTML5 Element */

Article,

aside,

Details

Figcaption,

Figure

Footer

Header

Hgroup,

Menu

Nav

Section

Summary

Time

Mark

Audio

Video {

Display:block;

margin:0;

padding:0;

}

Mark {

Background: #ff0;

}

Clear CSS Default style code

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.