Code/*Kissy CSS Reset Concept: 1. The purpose of reset is not to clear the default browser style, which is only part of the work. The purge and reset are tightly intertwined. 2. The purpose of reset is not to make the default style consistent across all browsers, but to reduce the potential problems of default styles. 3. Reset expects to provide a common, universal base style. However, there is no silver bullet, it is recommended to cut and modify it according to the specific needs. Features: 1. 2. Adapt to Chinese; Based on the latest mainstream browser. Maintenance: Yuber <[email protected]>, Zheng Chun <[email protected]>*/ /** Clear the 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*/form, fieldset, Legend, 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.5 Tahoma, Arial, \5b8b\4f53, Sans-serif; }H1, H2, H3, H4, H5, H6{font-size:100%; }address, cite, DFN, EM, var{Font-style:Normal; }/*to straighten the italic body*/code, KBD, pre, Samp{font-family:Courier New, Courier, Monospace; }/*Uniform equal width font*/Small{font-size:12px; }/*less than 12px Chinese hard to read, let small normalize*/ /** Reset list elements **/UL, Ol{List-style:None; }/** Reset Text formatting elements **/a{text-decoration:None; }a:hover{text-decoration:Underline; }sup{vertical-align:Text-top; }/*Reset , reducing the impact on row heights*/Sub{vertical-align:Text-bottom; }/** Reset Form elements **/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%; }/*enables form elements to inherit font size under IE*//*Note: Optgroup cannot be righting*//** Reset Table elements **/Table{Border-collapse:collapse;border-spacing:0; }
Compressed version:
Code/*Copyright, Kissy UI Library v1.0.5mit licensedbuild:524 Apr 6 09:10*/body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th , TD{margin:0;padding:0;}Body,button,input,select,textarea{Font:12px/1.5 Tahoma,arial,\5b8b\4f53,sans-serif;}H1,h2,h3,h4,h5,h6{font-size:100%;}Address,cite,dfn,em,var{Font-style:Normal;}Code,kbd,pre,samp{font-family:Courier New,courier,monospace;}Small{font-size:12px;}Ul,ol{List-style:None;}a{text-decoration:None;}a:hover{text-decoration:Underline;}sup{vertical-align:Text-top;}Sub{vertical-align:Text-bottom;}legend{Color:#000;}fieldset,img{Border:0;}Button,input,select,textarea{font-size:100%;}Table{Border-collapse:collapse;border-spacing:0;}
CSS initialization-kissy CSS Reset 1.0