所以我試圖將進度條和按鈕中的按鈕放在同一行,但由于某種原因,它不起作用<button type="button" class="btn btn-primary text-nowrap" style="white-space:nowrap;"> cpu usage procentage: <span class="badge badge-light live text-nowrap" id ="cpu" style="white-space:nowrap;">{{computer.cpu_usage_procentage}}</span> </button> <div class="progress"> <div id="cpu-progress" class="progress-bar bg-danger" role="progressbar" style="width: {{computer.cpu_usage_procentage}}%" aria-valuenow="{{computer.cpu_usage_procentage}}" aria-valuemin="0" aria-valuemax="100">{{computer.cpu_usage_procentage}}</div> </div>我想要的是它們在同一行而不是不同的行,所以我看到應該white-space:nowrap;可以完成工作,但由于某種原因,它仍然不起作用
- 1 回答
- 0 關注
- 158 瀏覽
添加回答
舉報
0/150
提交
取消