Reset the default browser style (CSS reset)

Source: Internet
Author: User

(1) Definition: First CSS reset refers to the default style of resetting the browser
(2) Role: Because there are many browsers now, and each browser has its own default style, which will cause a page in multiple browsers to show the difference, so we need to do some processing so that each browser display consistent, it requires CSS reset
(3) Content: The first one: *{padding:0;margin:0;border:0;} The second: The element you are using {padding:0;margin:0;border:0;}, while the first one is simple to write, but it resets all the tags, and we may not need to reset so many elements, wasting system resources, reducing performance, So just give yourself the page needs to reset the element reset the default style
(4) Defect: Not all tags have a default margin,padding,reset and even the following useful style has been killed, and on the mobile side and the computer has a bug

Reset the default browser style (CSS reset)

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.