Home  >  Article  >  Web Front-end  >  What does Bootstrap component refer to?

What does Bootstrap component refer to?

青灯夜游
青灯夜游Original
2021-11-01 15:12:082581browse

In Bootstrap, a component is an independent structural unit in the page. It is an abstraction of the structure. It mainly exists in the form of page structure and is highly reusable. Components can have their own properties and methods; different components also have basic interactive functions and can implement complex project functions based on business logic.

What does Bootstrap component refer to?

The operating environment of this tutorial: Windows 7 system, bootsrap version 3.3.7, DELL G3 computer

What are components?

Component is an abstract concept and a simple encapsulation of data and methods. In terms of object-oriented thinking, a component is a combination of classes that comply with certain specifications, and components can provide users with certain specific functions. Simply put, components are objects.

A component represents the physical part implemented in a system. It is a physical and replaceable part of the system that encapsulates a series of available interfaces. The components are similar to car engines in people's lives. Different models of cars can use the same engine, so there is no need to produce a different engine for each car.

Advantages of Bootstrap components

Components are independent structural units in the page. They are an abstraction of the structure. They mainly exist in the form of page structures and can be reused. Very strong. The use of components is not complicated. Each component has its own scope. Each component area works independently and does not affect each other. Components can have their own properties and methods. Different components also have basic interaction functions and can implement complex project functions based on business logic.

The advantages of components mainly include the following five points:

  • Components can be reused

  • Improve development efficiency

  • Components are modular

  • Reduce the degree of coupling between codes

  • The code is easier to maintain and manage

Commonly used bootstrap components:

  • Modal (modal dialog box)

  • Dropdown (drop-down menu)

  • ##Scrollspy (scroll listening)

  • Tab (tab)

  • Tooltip

  • Popover

  • Alert

  • Button

  • Collapse

  • Carousel

  • Typeahead (input prompt)

  • ##Affix (additional navigation)
  • Recommended learning: "
bootstrap usage tutorial

The above is the detailed content of What does Bootstrap component refer to?. 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