Reset style of CSS

Source: Internet
Author: User
When we write CSS styles for multiple browsers, the analysis of the box model varies depending on the browser. To achieve the same effect, you have to write different styles for each browser. This increases the workload of front-end page designers. To solve this problem, we need to reset the styles of different elements in the example model they parse, and write the padding or margin values as 0. In this way, when we write it again, it will be easier to write or debug it. Now I will share with you a piece of Reset style code that I have been using. I also found it from a foreign CSS website. A very senior front-end page designer wrote me through the page, I also think it is quite good. So I will share with you HTML, body, Div, span, applet, object, IFRAME, H1, H2, H3, H4, H5, H6, P, BLOCKQUOTE, pre, A, abbr, acronym, address, big, cite, code, Del, dfn, em, Font, 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 {margin: 0; padding: 0; Border: 0; outline: 0; font-size: 100 %; Vertical-align: baseline; Background: transparent;} body {Line-Height: 1;} ol, UL {list-style: none;} BLOCKQUOTE, q {quotes: none;}/* Remember to define focus Styles! */: Focus {outline: 0;}/* Remember to highlight inserts somehow! */INS {text-Decoration: none;} del {text-Decoration: Line-through ;} /* Tables still need 'cellspacing = "0" 'in the markup */table {border-collapse: collapse; border-Spacing: 0;}/* reset style */
Related Article

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.