<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>整数四则运算测试程序</title> </head> <body> <h1>整数四则运算测试程序</h1> <p>请选择题型和题目数量:</p> <label><input type="radio" name="type" value="add" checked>加法</label> <label><input type="radio" name="type" value="sub">减法</label> <label><input type="radio" name="type" value="mul">乘法</label> <label><input type="radio" name="type" value="div">除法</label> <br> <label>题目数量:<input type="number" name="num" value="10" min="1" max="100"></label> <br> <button id="startBtn">开始答题</button> <div id="questions"></div> <br> <button id="submitBtn">提交答案</button> <div id="score"></div> <script src="test.js"></script> </body> </html>修改该代码,让加减乘除的选择在一个按键里,让开始答题和提交答案按键在同一行
时间: 2023-07-19 10:57:19 浏览: 217
HTML参考手册
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>整数四则运算测试程序</title>
</head>
<body>
<h1>整数四则运算测试程序</h1>
<p>请选择题目类型和数量:</p>
<button id="addBtn" class="operationBtn" value="add">加法</button>
<button id="subBtn" class="operationBtn" value="sub">减法</button>
<button id="mulBtn" class="operationBtn" value="mul">乘法</button>
<button id="divBtn" class="operationBtn" value="div">除法</button>
<br>
<label>题目数量:<input type="number" name="num" value="10" min="1" max="100"></label>
<br>
<button id="startBtn">开始答题</button>
<button id="submitBtn">提交答案</button>
<br>
<div id="questions"></div>
<br>
<div id="score"></div>
<script src="test.js"></script>
</body>
</html>
阅读全文