<style>
		form {
			border: 1px solid gray;
			padding: 10px;
			width: 300px;
			display: inline-block;
		}
	</style>

<h1>亂數骰子大亂鬥-迴圈設計骰子數量</h1>

請先決定骰子數量:
<button id='godown' onclick='godown()'><</button>
<input type="text" id='mynu' size="3" readonly='readonly' style="text-align: center" value="3" />
<button id='goup'   onclick='goup()'  >></button>
<br />

<form id='pcform'>
	<h2>電腦先骰</h2>
	<input type="button" value="重玩一遍" name='pcinp' onclick='pcgo()' /><br />
	總點數:<input type="button" style='width: 50px;' id='pcnum' />
	<div id='pcall'></div>
</form>

<form id='myform'>
	<h2>換我來骰囉!</h2>
	<input type="button" onclick='mygo()' value="開始骰下去" name='myinp' /><br />
	總點數:<input type="button" style='width: 50px;' id='mynum' />
	<div id='myall'></div>
</form>
<div id='ans'></div>