第 101 行,第 86 列:文档类型在此处不允许元素“输入”;缺少“th”、“td”开始标签之一
这是代码:
<input type="submit" name = "b1" value = "Calculate" onclick = "calculate()"/>
<form name="frm1" action="">
<fieldset>
<table>
<tr>
<td>Weight:</td>
<td><input type="text" name="number1"/></td>
<td>Distance:</td>
<td><input type="text" name="number2"/></td>
<td>Answer =</td>
<td><input type="text" name="number3"/></td>
<input type="submit" name = "b1" value = "Calculate" onclick = "calculate()"/>
</tr>
</table>
</fieldset>
</form>
这是功能:
<script type="">
function calculate()
{
A = document.frm1.number1.value;
B = document.frm1.number2.value;
C = (A*B*1.036);
document.frm1.number3.value = C
}
</script>