?? ch2-31.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>簡易計算器</title>
<style type="text/css">
<!--HTML表單提供數據和運算符,JSP動態網頁對數據進行指定運算,并能對錯誤的數據輸入進行提示-->
.style3 {font-size: x-small}
</style></head>
<body bgcolor="#FFFFCC" style="text-align:center">
<form action="ch2-31.jsp" name="form" target="_self"><table width="300" border="0" cellpadding="0" cellspacing="0" bgcolor="#ddeeff">
<tr align="center">
<td height="50" colspan="3">兩個數的簡易計算器</td>
</tr>
<tr>
<td height="50" align="center" valign="bottom"><div align="right" class="style3">第一個數</div></td>
<td height="50" align="center"> </td>
<td align="center" valign="bottom"><div align="left" class="style3">第二個數</div></td>
</tr>
<tr>
<td width="111" height="50" align="center" valign="top"><div align="right">
<input name="n1" type="text" id="n1" size="12">
</div></td>
<td width="57" height="50" align="center" valign="top"><select name="select">
<option value="1">+</option>
<option value="2">-</option>
<option value="3">×</option>
<option value="4">÷</option>
</select></td>
<td width="132" align="center" valign="top"><div align="left">
<input name="n2" type="text" id="n2" size="12">
</div></td>
</tr>
<tr align="center">
<td height="50" colspan="3"><input type="submit" value="計算"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -