Home > Web Front-end > Front-end Q&A > What is reset.css

What is reset.css

藏色散人
Release: 2020-11-16 10:38:50
Original
2637 people have browsed it

reset.css is a style sheet that resets browser tags. Its function is to redefine the tag style and override the browser's CSS default properties, which means overwriting the default style provided by the browser.

What is reset.css

Recommended: "css video tutorial"

reset.css Reset the style sheet of the browser tag.

The HTML tag has a default style in the browser. For example, the p tag has top and bottom margins, the strong tag has a bold font style, and the em tag has a font italic style. There are also differences between the default styles of different browsers. For example, ul has an indented style by default. Under IE, its indentation is achieved by margin, while under Firefox, its indentation is achieved by padding. . When switching pages, the browser's default style often causes us trouble and affects development efficiency.

So the solution is to remove all the browser's default styles from the beginning, or to be more precise, by redefining the label style. "Override" the browser's CSS default properties. The simplest way is to overwrite the default style provided by the browser! This is CSS reset.

Reset function

Because there are many types of browsers, the default style of each browser is also different, such as the

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template