What is css precompilation

王林
Release: 2020-11-12 09:40:02
Original
2642 people have browsed it

css pre-compilation refers to parsing the file into a css file through a plug-in written in a language that can read the file, because their file names are not css, and the writing method is not pure css, but cannot be recognized by the browser. , so you need to compile it before you can use it after writing it. This is css pre-compilation.

What is css precompilation

Pre-compilation principle

Parses the file into a css file through a plug-in written in a language that can read the file, because their file names are It is not CSS, and the writing method is not pure CSS. It cannot be recognized by the browser, so it needs to be compiled before it can be used. This is pre-compilation.

(Learning video sharing: css video tutorial)

The most common tool at present

sass, born in 2007, is the earliest and most mature CSS The preprocessor, with the support of the ruby ​​community and compass, the most powerful CSS framework, is currently influenced by LESS and has evolved into SCSS, which is fully compatible with CSS (SCSS requires the use of semicolons and curly braces instead of line breaks and indentations)

less, which appeared in 2009, is greatly influenced by SASS, but it also uses CSS syntax, making it easier for most developers and designers to get started. Its supporters outside the ruby ​​community far exceed SASS. Its shortcomings Compared with SASS, it does not have enough programmable functions, but its advantages are simplicity and compatibility with CSS, which in turn influenced the evolution of SASS into the era of SCSS. The famous Twitter Bootstrap uses LESS as the underlying language

stylus. It was created in 2010 and comes from the Node.js community. It is mainly used to provide CSS preprocessing support for Node projects. It has certain supporters in this community, but in a broad sense its popularity is not as good as SASS and LESS.

Related recommendations: CSS tutorial

The above is the detailed content of What is css precompilation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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