Basic CSS settings, the way the browser is incompatible

Source: Internet
Author: User

/*  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

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.