Yahoo CSS Reset

Source: Internet
Author: User
Html { Color : #000 ; Background : # Fff } 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 { Margin : 0 ; Padding : 0 } Table { Border-collapse :Collapse ; Border-spacing : 0 } Fieldset, IMG { Border : 0 } Address, caption, cite, code, dfn, em, strong, Th, VAR { Font-style : Normal ; Font-weight : Normal } Li {List-style : None } Caption, th { Text-align : Left } H1, H2, H3, H4, H5, h6 { Font-size : 100% ; Font-weight : Normal } Q: before, Q: After { Content : '' }Abbr, acronym { Border : 0 ; Font-variant : Normal ; /*  Small-caps small uppercase letter  */ } /*  Superscript  */  Sup { Vertical-align : Text-top ;/*  Align the top of the element with the top of the parent element font  */ } /*  Subscript  */  Sub { Vertical-align : Text-bottom ; /*  Align the top of the element with the bottom of the parent element font  */ } /*  In the browser, the font of input, textarea (text box) and select (multiple choice element) is smaller than that of the parent element.  */ Input, textarea, select { Font-family : Inherit ; /*  Inherit font from parent Element  */  Font-size : Inherit ; /*  Inherit font from parent Element  */  Font-weight : Inherit ; /*  Inherit font from parent Element */ } /*  Handling IE6/7  */  Input, textarea, select { * Font-size : 100% } /*  Legend does not inherit the color attribute of field. Therefore, you must set the text color of legend separately.  */  Legend { Color : #000 } Body {/*  The font size is 13 pixels, And the Row Height Is 1.231 times.  */  Font : 13px/1.231 Arial, Helvetica, clean, sans-serif ; * Font-size : Small ; /*  IE6 and 7  */  * Font : X-small ; /*  Weird ie Mode  */ } Select, input, button, textarea { Font : 99% Arial, Helvetica, clean, sans-serif } Table { Font-size : Inherit ; Font : 100% } PRE, code, KBD, SAMP, TT { Font-family : Monospace ; * Font-size :108% ; Line-height : 100% }
 
. Clear{Zoom:1;}. Clear: After{Content:"";Height:0;Visibility:Hidden;Display:Block;Clear:Both;}

 

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.