CSS clears some of the default settings

Source: Internet
Author: User

Placeholder setting of the input tag

input::-webkit-input-placeholder{/*webkit browsers*/  /Reset Style}  input::-moz-input-placeholder{/*Mozilla firefox*/  //Reset style}input::-ms-input-placeholder{/*internet explorer*/   /Reset Style}

  
Second, the input label to get focus of the border settings

Add Outline:none or outline:medium;input{outline:medium in the CSS of input,}/* Get focus */input:focus{   border:1px dolid #EEE;}

  
Third, remove the default style of the list

Li {list-style-type:none;} OL, ul {list-style:none;}

  
Iv. CSS reset for your own use

HTML, body, Div, span, applet, object, IFRAME,H1, H2, H3, H4, H5, H6, p, blockquote, PRE,A, ABBR, acronym, address, Big, C  Ite, Code,del, DFN, EM, img, INS, KBD, Q, S, Samp,small, Strike, strong, sub, SUP, TT, VAR,B, u, I, CENTER,DL, DT, DD, OL, UL, Li,fieldset, form, label, Legend,table, Caption, Tbody, TFOOT, THEAD, tr, TH, td,article, aside, canvas, details, EMB Ed, figure, Figcaption, footer, Header, Hgroup, menu, nav, output, Ruby, section, Summary,time, mark, audio, video {margin : 0;padding:0;border:0;font-family: "Microsoft Jas Black"; font-size:100%;font:inherit;vertical-align:baseline;} H1, H2, H3, H4, H5, h6 {font-weight:bold;} fieldset {margin:60px 0;text-align:center;border-top:2px solid #61CDE7;}    Legend {padding:0 80px;font-size:22px;color: #61CDE7; }a {text-decoration:none;} a:hover {cursor:pointer;}. FL {float:left;}. Fr {float:right;} button {Border:none;} /* HTML5 Display-role reset for older browsers */article, aside, details, figcaption, figure, Footer, Header, Hgroup, menu, nav, section {display:block;} body {line-height:1;} OL, ul {list-style:none;} BLOCKQUOTE, q {quotes:none;} Blockquote:before, Blockquote:after,q:before, q:after {content: '; content:none;} Table {border-collapse:collapse;border-spacing:0;}.  clearfix:after {Visibility:hidden;  Display:block;  font-size:0;  Content: "";  Clear:both; height:0;}

  

CSS clears some of the default settings

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.