CSS Flattening Blog Learning Summary (ii) CSS style reset

Source: Internet
Author: User

CSS style Reset

Method One: Not recommended to use, so write will make the page parsing speed slow .

*{
margin:0;
padding:0;
}

Method Two: We commonly used the wording, more popular.

Body, HTML, div, BLOCKQUOTE, IMG, label, p, H1, H2, H3, H4, H5, H6, PRE, UL, OL,
Li, DL, DT, DD, form, a, fieldset, input, TH, TD
{margin:0; padding:0; border:0; outline:none;}
body{line-height:1;font-size:88%/* Decide for yourself if your want to include this. */;}
H1, H2, H3, H4, H5, h6{font-size:100%;p adding:. 6em 0;margin:0 15px;}
UL, Ol{list-style:none;}
A{color:black;text-decoration:none;}
A:hover
{text-decoration:underline;}
. floatleft{float:left;padding:. 5em. 5em. 5em 0;}
. floatright{float:right;padding:. 5em 0.5em. 5em;

Method Three: The third method is recommended to keep the elements of the browser display consistent, only for elements that require a uniform style .

Normalize.css

<link rel= "stylesheet" type= "Text/css" href= "http://www.yyyweb.com/demo/inner-show/normalize.html" >

CSS Flattening Blog Learning Summary (ii) CSS style reset

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.