Home  >  Article  >  Web Front-end  >  what is bootstrap less

what is bootstrap less

藏色散人
藏色散人Original
2020-11-09 09:28:312444browse

bootstrap less is a CSS preprocessor that makes CSS dynamic; some other less files are imported into the bootstrap.less file. There is no code in this file, and the forms.less file contains the form. Layout, input box type style, etc.

what is bootstrap less

The operating environment of this tutorial: windows10 system, bootstrap3.0. This article is applicable to all brands of computers.

Recommended: "bootstrap Tutorial"

Bootstrap LESS

Less is a CSS preprocessor that makes CSS dynamic sex.

On the other hand, Bootstrap is a toolkit for rapid development of Web Apps and sites.

In this tutorial, we will discuss about using Bootstrap with Less CSS. This way, you can use Bootstrap’s Less variables, mixins, and nesting in CSS.

Get Bootstrap and Less CSS

Bootstrap official website: http://getbootstrap.com/

Less official website: http://lesscss.org /

What is included

Download Bootstrap and unzip the file. Bootstrap's Less component is located in the 'lib' directory. Since Bootstrap v1.4.0, there are nine less files. Let's take a look at what each of these nine files contains.

bootstrap.less

This is the main Less file. This file imports some other less files. There is no code in this file.

forms.less

This Less file contains the form layout and input box type styles.

mixins.less

This Less file makes CSS code reusable.

patterns.less

This Less file contains CSS code for repeated user interface elements that will not be overridden by the base styles located in the scaffolding Less file.

reset.less

This Less file contains CSS reset. This is an update to Eric Meyer's CSS Reset. Resetting of some HTML elements such as dfn, samp, etc. is exempted.

scaffolding.less

This Less file saves the basic styles needed to create grid systems, structured layouts, and page templates.

tables.less

This Less file contains styles for creating tables.

type.less

Typesetting-related styles can be found under this Less file. Styles for titles, paragraphs, lists, codes, etc. are located in this file.

variables.less

This Less file contains variables to customize the look and feel of Bootstrap.

How to use

If you want to use it, please include the following code in your HTML page:

<link rel="stylesheet/less" href="lib/bootstrap.less" media="all" />
<script src="js/less-1.1.5.min.js"></script>

Please note that less-1.1.5.min.js is not in js folder, you need to download and place it in the specified folder.

The above is the detailed content of what is bootstrap less. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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