2015-08-22 php大力力005. php大力力简单计算器001:
上网看视频,看了半天,敲击代码,如下:
<html>
<head>
<title>简单计算器</title> </head>
<body>
<table border="1" width ="500" align="center">
<form action = "calculator.php" method ="post">
<tr>
<td>
<input type="text" size="15" name = "num1" value=""/><br>
</td>
<td>
</td>
<td>
<SELECT name = "ysf">
<option value="+"> + </option>
<option value="-"> - </option>
<option value="*"> * </option>
<option value="/"> / </option>
<option value="%"> % </option>
</SELECT>
</td> <td>
<input type="text" size="15" name = "num2" value=""/><br>
</td> <td>
<input type="submit" name = "sub" value="计算"/> </td>
</tr>
</table>
</body>
</html>
对了,博客园代码在随笔里面,如何能显示的更好一些捏?问号❓
例如:http://blog.csdn.net/greenbird811/article/details/7514865 这里面的代码显示效果就非常好,
但是我不知道如何做耶。。。
ok,现在搞定,选择“插入代码”图标
<html>
<head>
<title>简单计算器</title>
</head> <body>
<table border="1" width ="500" align="center">
<form action = "calculator.php" method ="post">
<tr>
<td>
<input type="text" size="15" name = "num1" value=""/><br>
</td>
<td>
</td> <td>
<SELECT name = "ysf">
<option value="+"> + </option>
<option value="-"> - </option>
<option value="*"> * </option>
<option value="/"> / </option>
<option value="%"> % </option>
</SELECT>
</td> <td>
`<input type="text" size="15" name = "num2" value=""/><br>
</td> <td>
<input type="submit" name = "sub" value="计算"/> </td>
</tr>
</table>
</body>
</html>
写下以上几个我第一次接触的知识点吧
<form action = "calculator.php" method ="post">
还有
<SELECT name = "ysf">
<option value="+"> + </option>
<option value="-"> - </option>
<option value="*"> * </option>
<option value="/"> / </option>
<option value="%"> % </option>
</SELECT>
嗯嗯,先写这么多,慢慢来
2015-08-22 php大力力005. php大力力简单计算器001
http://www.cnblogs.com/dalitongxue/p/4750277.html