Home > Web Front-end > Bootstrap Tutorial > How to set progress bar in bootstrap4

How to set progress bar in bootstrap4

(*-*)浩
Release: 2019-07-27 16:54:38
Original
2719 people have browsed it

The bootstrap component is often used in front-end development. Today, this article will share with you the basic usage of the progress bar of the bootstrap component. Friends who need it can refer to it

How to set progress bar in bootstrap4

Basic usage of progress bar (Recommended learning: Bootstrap video tutorial)

Mainly relies on .progress and .progress-bar

aria-valuenow Indicates the current value

aria-valuemin indicates the minimum value

aria-valuemax indicates the maximum value

width:60% indicates the current progress bar position

Progress bar Can display the completion process of user tasks.

The steps to create a basic progress bar are as follows:

Add a

with the .progress class.

Next, within the above

, add an empty
with class .progress-bar.

Add a style attribute with a width expressed in percentage, for example, style="width:70%" means that the progress bar is at the 70% position.

Example:

<div class="progress">
  <div class="progress-bar" style="width:70%"></div>
</div>
Copy after login

For more technical articles related to Bootstrap, please visit the Bootstrap Tutorial column to learn!

The above is the detailed content of How to set progress bar in bootstrap4. For more information, please follow other related articles on the PHP Chinese website!

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