CSS Reset

高洛峰
高洛峰Original
2016-11-01 13:38:021389browse

Why reset browser default CSS?

The browser will set the "default settings" for "labels", and the default settings of different browsers are different.

Many times, the browser’s default settings are useless to us developers.

Then, developers need to write overriding css to override the browser’s default settings.

CSS Reset not only "clears the default style", but also sets the "global default style"

How to do it?

Timing of introduction: At the beginning of the project, the reset file should be set. Because if you make changes later in the project, it will affect the whole body.

Introduction position: the first css introduction on the page.

<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="xxxx.css">
<link rel="stylesheet" type="text/css" href="yyyy.css">

There is no standard answer to CSS Reset, because different products have different needs, so we should use the Reset method to formulate our own Reset according to our own products. Only the Reset that conforms to our own products is a good Reset.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:CSS box modelNext article:CSS box model