What is reset css

藏色散人
Release: 2023-01-06 11:12:54
Original
2698 people have browsed it

reset css refers to reset.css to reset the style sheet of the browser tag. Its function is to remove all the browser's default styles. To be more precise, it is to redefine the tag style, that is, to provide the browser with The default style is overwritten.

What is reset css

The operating environment of this article: windows7 system, CSS3 version, DELL G3 computer

reset.css Reset the browser Tag style sheet

HTML tags have default styles 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 more precisely, 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!