Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the use of Normalize.css?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what is the use of Normalize.css". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the use of Normalize.css"?

Normalize.css is only a small css file, but it provides a high degree of consistency across browsers on the default HTML element style. Compared with the traditional cssreset,Normalize.css, it is a modern, high-quality alternative for HTML5. Normalize.css is now used on TwitterBootstrap,HTML5Boilerplate,GOV.UK,Rdio,CSSTricks and many other frameworks, tools and websites.

Normalize.css is an alternative to CSSreset. After hundreds of hours of @ necolas and @ jonneal trying to study the differences between the default styles of different browsers, the project finally became what it is now.

We created normalize.css for the following purposes:

Protect useful browser default styles rather than completely get rid of their general styles: provide bug for most HTML elements to fix the browser itself and ensure browser consistency to optimize CSS availability: use a few tricks to interpret the code: use comments and detailed documentation

Normalize.css supports a wide range of browsers, including mobile browsers, and generalizes HTML elements, typesetting, lists, embedded content, forms and tables. Despite the general principles of this project, we use more practical default values where appropriate.

NormalizevsReset

It is valuable to know the difference between Normalize.css and tradition.

1.Normalize.css protects valuable default values

Reset forces elements to have the same visual effect by imposing default styles on almost all elements. By contrast, Normalize.css maintains many default browser styles. This means that you no longer have to restyle all common typesetting elements. When an element has different default values in different browsers, Normalize.css strives to keep these styles consistent and possibly in line with modern standards.

2.Normalize.css fixed the browser's bug

It fixes the bug of common desktop segments and mobile browsers. This is often beyond what Reset can do. At this point, the problems fixed by Normalize.css include display settings for HTML5 elements, font-size problems with formatted text, SVG overflows in IE9, and many form-related bug in browsers and operating systems.

Thank you for your reading, the above is the content of "what is the use of Normalize.css". After the study of this article, I believe you have a deeper understanding of what the use of Normalize.css is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report