简单教程
提交运行
代码编辑器:
<meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/static/lib/bootstrap/4.0.0/css/bootstrap.min.css"> <script src="/static/lib/jquery/3.3.1/jquery.min.js"></script> <script src="/static/lib/bootstrap/4.0.0/js/bootstrap.min.js"></script> <div class="container"> <h2>进度条高度</h2> <p>进度条高度默认为 16px。但可以使用 CSS 的 height 属性来修改</p> <div class="progress" style="height:8px"> <div class="progress-bar" style="width:10%"></div> </div> <br> <div class="progress" style="height:32px"> <div class="progress-bar" style="width:50%"></div> </div> <br> <div class="progress" style="height:44px"> <div class="progress-bar" style="width:90%"></div> </div> </div>
运行结果: