Less Development Guide (I)-mavericks trial

Source: Internet
Author: User

[1] Introduction to less

LESS. less) includes a set of custom syntaxes and a parser. Based on these syntaxes, we define our own style rules. These rules will be compiled and generated through the parser.

{:;:}

 

The compiled css file code:

{:;:

In the above less code, we see the epitome of css syntax (selector, attribute writing). LESS does not crop the original CSS features, but is not used to replace CSS, on the basis of the existing CSS syntax, add the features of the Procedural language to CSS. We still introduce the css file address when developing the front-end page, while the less file is the code file you maintain. In this process, we just took one more step-compile

 

[2] compilation Scheme

At present will be less compiled into css plug-ins or software a lot, such as gruntjs, nodejs and so on, and here is the introduction of koala compilation software, http://www.lesscss.net/

 

Open this software and set

 

 

 

Less

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.