CSS Reset File

Source: Internet
Author: User

/*Kissy CSS Reset Concept: Clear and reset is tightly inseparable features: 1. Adapt to Chinese 2. Based on the latest mainstream browser maintenance: Yuber ([email protected]), Zheng Chun ([email protected])*//*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 formatting elements*/fieldset, Lengend, button, input, textarea,/*Form Elements Table element*/th, TD{/*Table elements Tabular elements*/margin:0;padding:0;}/*Set Default Font*/Body,button, input, select, textarea{/*For IE*/    /*font:12px/1 Tahoma, Helvetica, Arial, "Song Body", Sans-serif;*/Font:12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", Sans-serif;/*expressed in ASCII characters, so that there is no problem with any encoding*/}H1{font-size:18px;/*18px/12px = 1.5*/}H2{font-size:16px; }H3{font-size:14px; }H4, H5, H6{font-size:100%; }address, cite, DFN, EM, var{Font-style:Normal; }/*to straighten the italic body*/code, KBD, Pre, SAMP, TT{font-family:"Courier New", Courier, monospace; }/*Uniform equal width font*/Small{font-size:12px; }/*less than 12px Chinese hard to read, let small normalize*//*Resetting list elements*/UL, Ol{List-style:None; }/*Reset text formatting elements*/a{text-decoration:None; }a:hover{text-decoration:Underline; }Abbr[title], Acronym[title]{/*Note: 1.ie6 does not support abbr; 2. The attribute selector is used here, no effect under IE6*/Border-bottom:1px dotted;cursor: Help;}Q:before, Q:after{content:"'; }/*Reset table cell elements*/legend{Color:#000; }/*For IE6*/fieldset, img{Border:None; }/*img Hitch: Let the img in the link have no border*//*Note: Optgroup cannot be righting*/button, input, select, textarea{font-size:100%;/*enables form elements to inherit font size under IE*/}/*Reset Table Elements*/Table{Border-collapse:collapse;border-spacing:0;}/*Reset HR*/HR{Border:None;Height:1px;}/*let non-IE browser display the vertical scroll bar by default, to prevent flicker caused by the scroll bar*/HTML{overflow-y:Scroll; }

Reprint Source

http://www.cnblogs.com/yizuierguo/archive/2009/07/15/1524106.html#3438322

Usage Recommendations:

1. The actual project can be this: Reset CSS +fonts.css/base.css/layout.css .... Combination of the way

2. The unused elements in the reset CSS can be removed directly, reducing the amount of code

3. Build maintenance information in reset CSS for easy extension

Foreign reset CSS File reference URL

http://cssreset.com/

CSS Reset File

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.