Htmlcss notes -- reset css reset and htmlcsscss by TAG default Style

Source: Internet
Author: User

Htmlcss notes -- reset css reset and htmlcsscss by TAG default Style

1. <a> label

Default text modifier: underline,

Remove: text-decoration: none;

      

Text-decoration property value:

None is the default value. Define standard text. Underline defines a line in the text. Overline defines a line in the text. Line-through defines a line passing through the text. Blink defines the flickering text. Inherit specifies that the value of the text-decoration attribute should be inherited from the parent element.

 

2. <ul> <ol>

Default list style: list-style: none;

Default internal and external margins: margin: 0; padding: 0;

  

<Dl> <dd> default margin: 0;

  

3. body

The default body has an external border,

Remove: body {margin: 0 ;}

    

The p tag has the upper and lower margins by default. (the lower margin overlaps with the top margins of other blocks. The outer margin after the stacked is the maximum value of 2 .)

Title h1, h2, h3, h4, h5, h6, all by default outer border,

4. Default text size:

The text size on the page is different, for example,

Remove: body {font-size: xpx. Minimum Chinese text size: 12px;

 

5. The default page font is.

Font-family;

 

6. The image in the package is added with a border in ie6.

Img {border: none ;}

 

Summary:

<Style>

Body. p, h1, h2, h3, h4, h5, h6, dl, dd {margin: 0; font-size: 12px; font-family: XX ;}

Ol, ul {list-style: none; padding: 0; margin: 0 ;}

Img {border: none ;}

A {text-decoration: none ;}

</Style>

 

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.