我有一個頁面,其中包含按表順序排列的最后一組文件,并且我有這些文件的數(shù)量。在這些文件中,我將打開和關(guān)閉的文件作為狀態(tài)。我想在進(jìn)度條中顯示關(guān)閉文件的百分比。這里基于寬度,只有進(jìn)度條在改變。現(xiàn)在我的問題是如何將計算出的值作為寬度。我正在使用引導(dǎo)程序 3。有人可以指導(dǎo)我朝著正確的方向前進(jìn)。<!DOCTYPE html><html><head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script></head><body> <div class="container"> <div class="progress"> <div class="progress-bar" role="progressbar" style="width: 55%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">55%</div> </div> </div></body></html>
如何在 Bootstrap 3 Progress Bars 中給出計算的寬度?
元芳怎么了
2021-06-15 17:57:58