0
私はこのコードでプログレスバーに問題がある:進捗バーを最大100%までストリップするにはどうすればよいですか?
<div style='width: 100%;' class='serverlist_progress ipsBadge ipsBadge_small ipsBadge_neutral ipsResponsive_hideTablet ipsResponsive_hidePhone'>
<div class='serverlist_progress-bar' style='width: {$allServerStats['amount_fill_servers']}; background: #3498db'></div>
<div class='ipsType_center' style='position: absolute; width: 100%;'>
{lang="sl_fill_servers"}: {$allServerStats['amount_fill_servers']}
</div>
</div>
いつか私のサーバーのショーは、プログレスバーは100%を超えます。
どうすれば最大100%までストリップできますか?あなたがposition: absolute
とwidth: 100%
を使用
パディングやボーダーやマージンと幅を混在させないでください。それを確認してください。 –
パーセントを計算するPHPを追加します。 – chris85