/* prevents users from customizing the effect of background color on Web pages, adding allows users to customize font */html {background:white;color:black;} /* the internal and external margins often make each browser style behave differently */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,hr,button,article,aside,details,figcaption,figure,footer,header, hgroup,menu,nav,section { margin:0; padding:0;} /* Note that form elements do not inherit the parent font problem */body,button,input,select,textarea { font:12px \ 5b8b\4f53,arial,sans-serif;} input,select,textarea {font-size:100%;} /* remove the margins of table cell and make their edges coincide */table { border-collapse:collapse; border-spacing:0;} /* ie bug:th does not inherit text-align */th {text-align:inherit;} /* remove default border */fieldset,img { border:none;} /* ie6 7 8 (q) bug display for inline performance */iframe { display:block;} /* remove firefox The border of this element */abbr,acronym { borDer:none;font-variant:normal;} /* consistent del style */del { text-decoration:line-through;} address,caption,cite,code,dfn,em,th,var {font-style:normal; font-weight:500;} /* Remove the identification before the list,li will inherit */ol,ul { list-style:none;} /* alignment is the most important factor in typesetting, don't let anything be centered */caption,th { text-align:left;} /* from Yahoo, so that the title is customized to adapt to multiple system applications */h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:500;} Q:before,q:after { content: ';} /* Unified superscript and subscript */sub,sup { font-size:75%; line-height:0; position:relative; Vertical-align:baseline;} Sup { top:-0.5em;} Sub { bottom:-0.25em;} /* let the link display underline */a:hover {text-decoration:underline in the hover State;} /* does not display the underline by default, keep the page concise */ins,a { text-decoration:none;} /* Removal ie6 & ie7 focal point line */a:focus,*:focus { outline:none;} /* Clear Floating */.clearfix:before,.clearfix:after { content: ""; display:table;}. Clearfix:after { clear:both;overflow:hidden;}. clearfix { zoom:1; /* for ie6 & ie7 */}.clear {clear:both; Display:block; font-size:0; height:0;line-height:0;overflow:hidden;} /* settings are displayed and hidden, usually used in conjunction with js */.hide { display:none;}. Block {display:block;} /* set float to reduce the bug */.fl,.fr { display:inline caused by floating;}. Fl {float:left;}. Fr {float:right;}
This article is from "Buffy Rain Blog" blog, please be sure to keep this source http://bafeiyu.blog.51cto.com/5401101/1602470
Basic CSS settings, the way the browser is incompatible