I often use CSS reset.

Source: Internet
Author: User
1 @ charset "UTF-8"; 2/* CSS reset for XHTML */3 HTML {color: #000; Background: # fff} 4 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} 5 Table {border-collapse: collapse; border-Spacing: 0} 6 fieldset, IMG {border: 0} 7 address, caption, cite, code, dfn, em, strong, Th, VAR {font-style: normal; font-weight: normal} 8 ol, UL {list-style: None} 9 caption, th {text-align: Left} 10 H1, H2, H3, H4, H5, H6 {font-size: 100%; font-weight: normal} 11 Q: before, Q: after {content: ''} 12 abbr, acronym {border: 0; font-variant: normal} 13 sup {vertical-align: Text-top} 14 sub {vertical-align: text-bottom} 15 input, textarea, select {font-family: Inherit; font-size: Inherit; font-weight: Inherit} 16 input, textarea, select {* font-size: 100%} 17 legend {color: #000} 18/* remove the dotted box when the link gets the focus */19 A {text-Decoration: none; outline: none;} 20 A: hover {text-Decoration: underline;} 21 A: Active {Star: expression (this. onfocus = This. blur ()/* IE6/7, this code will interrupt the tab, and excessive use of CSS expressions will seriously affect the page performance */;} 22 A: Focus {outline: none ;} 23/* solve the problem of no vertical center in the row height of button text setting in Firefox */24 button:-moz-focus-inner, input [type = "reset"]: -Moz-focus-inner, input [type = "button"]:-moz-focus-inner, input [type = "Submit"]: -Moz-focus-inner, input [type = "file"]> input [type = "button"]:-moz-focus-inner {border: none/* de-dotted box */; padding: 0;} 25/* frequently used CSS */26. CL {clear: Both;} 27. fix {ZOOM: 1;} 28. fix: After {content :". "; display: block; Height: 0; font-size: 0; overflow: hidden; clear: Both;} 29. FL {float: Left;} 30. FR {float: Right;} 34. rel {position: relative;} 35. ABS {position: absolute;} 37. block {display: block;} 38. none {display: none;} 39/* font (UNICODE): (\ 5b8b \ 4f53) (\ 9ed1 \ 4f53) (\ 5fae \ 8f6f \ 96c5 \ 9ed1) */40 body {Font: 12px/150% \ 5b8b \ 4f53, sans-serif ;}

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.