, and then add a
in
to set the progress bar."> How to set the progress bar in bootstrap-Bootstrap Tutorial-php.cn

How to set the progress bar in bootstrap

Release: 2019-07-27 13:51:35
Original
2989 people have browsed it

How to set the progress bar in bootstrap


1. The implementation method is as follows:

(1) Introduce bootap File:

Copy after login

(2) Add a

;

(3) Add a< in

div class="progress-bar">

Copy after login

aria-valuenow="40"——The current progress value of the progress bar.

aria-valuemax="100"——Maximum progress value.

aria-valuemin=“0”——Minimum progress value.

style="width:40%;"——Let the progress bar point to the 40% position.

The complete code is as follows:

           进度条
           

默认的进度条

Copy after login

The above is to implement a default progress bar, the background color is gray, and the progress color is blue. We can also add different progress bar based on the default progress bar. style to achieve colorful progress bars.

2. Specify color.

progress-bar-success、progress-bar-info、progress-bar-warning、progress-bar-danger

Copy after login

How to set the progress bar in bootstrap

3. Striped shape, you can add progress-striped to the root div.

Copy after login

4. Add active to the root div to achieve an animated progress bar.

Copy after login

Recommended:bootstrap introductory tutorial

The above is the detailed content of How to set the progress bar in bootstrap. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!