<h2>隨機產生人物的屬性值</h2> <div class="boxing"> <img src="images/amanda.jpg" alt="amanda" /> <div class="right"> <div class="argbox"> 體力: <div class="argbar"> <div class="argcolor" style="width: <?php echo $arg1; ?>%"> <?php echo $arg1; ?> </div> </div> </div> <div class="argbox"> 魔力: <div class="argbar"> <div class="argcolor" style="width: <?php echo $arg2; ?>%"> <?php echo $arg2; ?> </div> </div> </div> <div class="argbox"> 攻擊力: <div class="argbar"> <div class="argcolor" style="width: <?php echo $arg3; ?>%"> <?php echo $arg3; ?> </div> </div> </div> </div> </div>