, and then add a
84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1. The implementation method is as follows:
(1) Introduce bootap File:
(2) Add a
(3) Add a< in
Copy after loginaria-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:
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 login3. Striped shape, you can add progress-striped to the root div.
Copy after login4. Add active to the root div to achieve an animated progress bar.
Copy after loginRecommended: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!